28.04.2016, 06:41
ok i added a /setkills for admins commands to my server. Before i started i compile the script which show me no errors, once i added the /setkills command i think it got bugged with the register dialog here is my code:
N.B
Even when i delete line 500 the location changed to Ondialogresponse but its with the dame dialog(DIALOG_REGISTER). And as far as i can see there is nothing worng with the dialog
pawn Код:
//line 500 where pawno say the undefined symbol is
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registration.",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
//my /setkills code
CMD:setkills(playerid,params[])
{
if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][dAdmin] >= 7)
{
new id,kill;
if(sscanf(params, "ui", id, kill)) return
SendClientMessage(playerid, 0xFFFF00C8, "Usage: /Setkills <PlayerID> <kills>") ;
if(IsPlayerConnected(id))
{
CommandToAdmins(playerid,"setkills");
format(dstring, sizeof(dstring), "An Administrator has set your kills to '%d'",kill);
SendClientMessage(id,lighterblue,dstring);
format(dstring,sizeof(dstring),"You have set %s's kills to %d", GetName(id), kill);
SendClientMessage(playerid,yellow,dstring);
return PlayerInfo[id][dKills] = kill;
}
else return SendClientMessage(playerid,lighterblue,"Player is NOT connected!");
}
else return ShowErrorMsg(playerid, red, 1);
}
//the list of errors
C:\Users\Public\Videos\pic 1\samp\gamemodes\dmserver.pwn(500) : error 029: invalid expression, assumed zero
C:\Users\Public\Videos\pic 1\samp\gamemodes\dmserver.pwn(500) : error 017: undefined symbol "t"
C:\Users\Public\Videos\pic 1\samp\gamemodes\dmserver.pwn(500) : error 029: invalid expression, assumed zero
C:\Users\Public\Videos\pic 1\samp\gamemodes\dmserver.pwn(500) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Even when i delete line 500 the location changed to Ondialogresponse but its with the dame dialog(DIALOG_REGISTER). And as far as i can see there is nothing worng with the dialog