erros -
ZeZin - 17.03.2015
Resolvido Outros erros
pawn Код:
C:\Users\Leonardo\Desktop\Guerra em Los Santos\gamemodes\GangWar.pwn(830) : error 001: expected token: ";", but found "public"
C:\Users\Leonardo\Desktop\Guerra em Los Santos\gamemodes\GangWar.pwn(831) : error 055: start of function body without function header
C:\Users\Leonardo\Desktop\Guerra em Los Santos\gamemodes\GangWar.pwn(843) : error 010: invalid function or declaration
linha
pawn Код:
forward UpdateTimer()//aqui
public UpdateTimer(playerid);//aqui
{
format(TDstring, sizeof(TDstring), "%d", Scores);
format(TDstring, sizeof(TDstring), "%d", Money);
format(TDstring, sizeof(TDstring), "%d", PlayerInfo[id][Kills]);
format(TDstring, sizeof(TDstring), "%d", PlayerInfo[id][Deaths]);
format(TDstring, sizeof(TDstring), "%d", Ping);
PlayerTextDrawSetString(playerid, Textdraw1[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw2[playerid], TDstring);
PlayerTextDrawSetString]playerid, Textdraw3[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw4[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw5[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw6[playerid], TDstring);
return 1;//aqui
}
Re: erros -
SkullFire - 17.03.2015
Код:
public UpdateTimer(playerid)
tem uma ";", remova-a ...
@edit - ty arakuta
Код:
forward UpdateTimer(playerid);
E falta colocar uma ";"
Veja a explicaзгo do fera arakuta ...
Re: erros -
arakuta - 17.03.2015
nгo se coloca ponto e vнrgula apуs uma callback
PHP код:
public MinhaCallback(parametro)
{
return 1;
}
Faltou colocar tambйm ponto e virgular na declaraзгo da callback
PHP код:
forward MinhaCallback(parametro);
Re: erros -
matheusspohr - 18.03.2015
tente
PHP код:
forward UpdateTimer();//aqui vai ponto e virgola
public UpdateTimer(playerid)//aqui nao tem ponto e virgola
{
format(TDstring, sizeof(TDstring), "%d", Scores);//aqui por que sla eu deixo alinhado
format(TDstring, sizeof(TDstring), "%d", Money);
format(TDstring, sizeof(TDstring), "%d", PlayerInfo[id][Kills]);
format(TDstring, sizeof(TDstring), "%d", PlayerInfo[id][Deaths]);
format(TDstring, sizeof(TDstring), "%d", Ping);
PlayerTextDrawSetString(playerid, Textdraw1[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw2[playerid], TDstring);
PlayerTextDrawSetString]playerid, Textdraw3[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw4[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw5[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw6[playerid], TDstring);
return 1;//aqui nao falta nada, mais abaixo falta 1 }
}
Re: erros -
#Luca[S]. - 18.03.2015
Quote:
Originally Posted by ZeZin
Resolvido
|
._. .
@Edited
O certo seria:
PHP код:
forward UpdateTimer();//aqui
public UpdateTimer(playerid)//aqui
{
format(TDstring, sizeof(TDstring), "%d", Scores);
format(TDstring, sizeof(TDstring), "%d", Money);
format(TDstring, sizeof(TDstring), "%d", PlayerInfo[id][Kills]);
format(TDstring, sizeof(TDstring), "%d", PlayerInfo[id][Deaths]);
format(TDstring, sizeof(TDstring), "%d", Ping);
PlayerTextDrawSetString(playerid, Textdraw1[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw2[playerid], TDstring);
PlayerTextDrawSetString]playerid, Textdraw3[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw4[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw5[playerid], TDstring);
PlayerTextDrawSetString(playerid, Textdraw6[playerid], TDstring);
return 1;//aqui
}
Re: erros -
matheusspohr - 18.03.2015
Nгo vi nada de resolvido, isso atй agora, so no post dele o original lб em cima, postando que os outros ele ja resolveu