18.04.2012, 18:51
Quote:
C:\Users\hp\Desktop\Server12\gamemodes\ak.pwn(2228 ) : error 001: expected token: ";", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
PHP код:
COMMAND:setscore(playerid,params[])
{
if(PlayerInfo[playerid][Level] < 2) return SendClientMessage(playerid,color_red,"You don't have the permission to use this command!");
new id,value;
if(sscanf(params,"ii",id,value)) return SendClientMessage(playerid,color_red,"USAGE: /setscore [playerID] [value]")
SetPlayerScore(id,value);
SendClientMessageEx(id,color_green,"sssis","Administrator ",PlayerInfo[playerid][Username]," has set your score to ",value," !");
SendClientMessageEx(playerid,color_green,"sssis","You have set ",PlayerInfo[id][Username],"'s score to ",value," .");
return 1;
}
another thing;
PHP код:
COMMAND:stats(playerid,params[])
{
SendClientMessage(playerid,color_green,"Your current stats:");
SendClientMessageEx(playerid,color_yellow,"sis","Score: ",GetPlayerScore(playerid),".");
SendClientMessageEx(playerid,color_yellow,"sis","Money: ",GetPlayerMoney(playerid),".");
return 1;
}