D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\relogio.pwn(26) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
public UpdateTime() { format(score, sizeof(score), "Score: %i",GetPlayerScore(playerid));//Linha Com o Erro! TextDrawSetString(tdscore,score); gettime(hour, minute); format(timestr,32,"%02d:%02d",hour,minute); TextDrawSetString(txtTimeDisp,timestr); SetWorldTime(hour); new x=0; while(x!=MAX_PLAYERS) { if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) { SetPlayerTime(x,hour,minute); } x++; } } |
forward UpdateTime(playerid);
public UpdateTime(playerid)
D:\Usuarios\Documentos\Servidor SAMP [HS]\filterscripts\relogio.pwn(75) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
UpdateTime();//Linha Com Warning SetTimer("UpdateTime",1000 * 60,1); |
forward UpdateTime(playerid); public UpdateTime(playerid) { format(score, sizeof(score), "Score: %i",GetPlayerScore(playerid)); TextDrawSetString(tdscore,score); gettime(hour, minute); format(timestr,32,"%02d:%02d",hour,minute); TextDrawSetString(txtTimeDisp,timestr); SetWorldTime(hour); new x=0; while(x!=MAX_PLAYERS) { if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) { SetPlayerTime(x,hour,minute); } x++; } } |
forward UpdateTime();
public UpdateTime()
forward UpdateTime(playerid);
public UpdateTime(playerid)
forward UpdateTime();
public UpdateTime()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
format(score, sizeof(score), "Score: %i",GetPlayerScore(i));
TextDrawSetString(tdscore,score);
gettime(hour, minute);
format(timestr,32,"%02d:%02d",hour,minute);
TextDrawSetString(txtTimeDisp,timestr);
SetWorldTime(hour);
new x=0;
while(x!=MAX_PLAYERS) {
if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) {
SetPlayerTime(x,hour,minute);
}
x++;
}
}