Jump to content

[REZOLVAT] Problema compilare.


NoPulseJrrs
 Share

Recommended Posts

Username: NoPulseJrrs
Problema întălnită: eroare
Detalii despre problemă: Imi da eroare la compilare
Ce ai încercat să faci înainte să postezi?: am cautat tutoriale
Cod sursă (recomandat pastebin.com) :  image.thumb.png.3535baf91785a40179b2c92bd1095cb3.png
Alte detalii: multumesc daca rezolvati

 

Liniile: image.thumb.png.5d6ee30408ad823a5ffbc333b0f69efe.png

Edited by NoPulseJrrs
Link to comment
Share on other sites

Inlocuieste:

 new Text:DmvPTD[MAX_PLAYERS][3];

cu:

 new PlayerText:DmvPTD[MAX_PLAYERS][3];

 

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Acum 1 minut, Matt a spus:

Inlocuieste:


 new Text:DmvPTD[MAX_PLAYERS][3];

cu:


 new PlayerText:DmvPTD[MAX_PLAYERS][3];

 

a mers mai am o singura problema.

 

(23620) : warning 213: tag mismatch

 

linie cu functia:

function showDMV(playerid) {
    if(DMVStage[playerid] == 1) {
        for(new i = 0; i < 4; i++)
             TextDrawShowForPlayer(playerid, DmvTD);

        for(new i = 0; i < 3; i++)
23620:             TextDrawShowForPlayer(playerid, DmvPTD[playerid][1]);
        SelectTextDraw(playerid, COLOR_GREEN);
    }
     DMVTimer[playerid] = 30;
     PlayerTextDrawShow(playerid, DmvPTD[playerid][1]);
     new question[64], answer[128];
     switch(DMVStage[playerid]) {
         case 1: {
         
             format(question, sizeof question, "Ce trebuie sa faci dupa ora 20:00?");
             format(answer, sizeof answer, "1. Trebuie sa aprind farurile.~n~~n~~n~2. Trebuie sa merg cu geamurile inchise.~n~~n~~n~3. Trebuie sa merg la un admin.");
         }
         case 2: {
         
             format(question, sizeof question, "Ce primesti daca conduci pe contra-sens?");
             format(answer, sizeof answer, "1. Primesc avertisment de la un politist.~n~~n~~n~2. Primesc ban permanent.~n~~n~~n~3. Primesc amenda de la un politist.");
         }
        case 3: {
        
             format(question, sizeof question, "Ce primesti daca faci accident?");
             format(answer, sizeof answer, "1. Primesc ban 3 zile.~n~~n~~n~2. Primesc suspendarea licentei.~n~~n~~n~3. Primesc admin pe server.");
             }
     }
    PlayerTextDrawSetString(playerid, DmvPTD[playerid][0], question);
    PlayerTextDrawShow(playerid, DmvPTD[playerid][0]);
    PlayerTextDrawSetString(playerid, DmvPTD[playerid][2], answer);
    PlayerTextDrawShow(playerid, DmvPTD[playerid][2]);
    return true;
}

Link to comment
Share on other sites

Acum 22 minute, AlexxAdv a spus:

Inlocuiesti TextDrawShowForPlayer(playerid, DmvPTD[playerid][1]);

cu

PlayerTextDrawShow(playerid, DmvPTD[playerid][1]);

(23617) : error 035: argument type mismatch (argument 2)

@AlexxAdv

 

line: function showDMV(playerid) {
    if(DMVStage[playerid] == 1) {
        for(new i = 0; i < 4; i++)
       (23617)      TextDrawShowForPlayer(playerid, DmvTD);

Edited by NoPulseJrrs
Link to comment
Share on other sites

Acum 14 minute, Dani3l. a spus:

in loc de  TextDrawShowForPlayer
 baga

 PlayerTextDrawShow

tot.. (23825) : error 035: argument type mismatch (argument 2) 

 

@Dani3l.

 

function showDMV(playerid) {
    if(DMVStage[playerid] == 1) {
        for(new i = 0; i < 4; i++)
             PlayerTextDrawShow(playerid, DmvTD);

        for(new i = 0; i < 3; i++)
             PlayerTextDrawShow(i, DmvPTD[playerid][1]);
        SelectTextDraw(playerid, COLOR_GREEN);
    }
     DMVTimer[playerid] = 30;
      PlayerTextDrawShow(playerid, DmvPTD[playerid][1]);
     new question[64], answer[128];
     switch(DMVStage[playerid]) {
         case 1: {
         
             format(question, sizeof question, "Ce trebuie sa faci dupa ora 20:00?");
             format(answer, sizeof answer, "1. Trebuie sa aprind farurile.~n~~n~~n~2. Trebuie sa merg cu geamurile inchise.~n~~n~~n~3. Trebuie sa merg la un admin.");
         }
         case 2: {
         
             format(question, sizeof question, "Ce primesti daca conduci pe contra-sens?");
             format(answer, sizeof answer, "1. Primesc avertisment de la un politist.~n~~n~~n~2. Primesc ban permanent.~n~~n~~n~3. Primesc amenda de la un politist.");
         }
        case 3: {
        
             format(question, sizeof question, "Ce primesti daca faci accident?");
             format(answer, sizeof answer, "1. Primesc ban 3 zile.~n~~n~~n~2. Primesc suspendarea licentei.~n~~n~~n~3. Primesc admin pe server.");
             }
     }
    PlayerTextDrawSetString(playerid, DmvPTD[playerid][0], question);
    PlayerTextDrawShow(playerid, DmvPTD[playerid][0]);
    PlayerTextDrawSetString(playerid, DmvPTD[playerid][2], answer);
    PlayerTextDrawShow(playerid, DmvPTD[playerid][2]);
    return true;
}

Edited by NoPulseJrrs
Link to comment
Share on other sites

  • L0K3D locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...