13.11.2012, 12:01
Hello, I have see in many gamemodes like this:
Can someone tell me what that "ui","uii" and "us[100] means? Please Help me..if there are any others then please teach that too plz.
I have errors in every commands, Like this one :
Код:
if(sscanf(params,"us[100]" if(sscanf(params."ui" if(sscanf(params,"uii" Any many like that
I have errors in every commands, Like this one :
Код:
CMD:slap(playerid,params[]) { if(AdminLevel[playerid] <= 2) return SendClientMessage(playerid,COLOR_ERROR,"You don't have access to this command"); if(sscanf(params,"ui",ID,cmdreason)) { SendClientMessage(playerid, -1, "USAGE: /slap [playerid] [Reason]"); return 1; } new ID, cmdreason, string[126], Float: PPos[3]; if(IsSpawned[ID] != 1) { format(string,sizeof(string),"%s(%d) must be alive and spawned in order to slap him",PlayerName(ID),ID); SendClientMessage(playerid,COLOR_ERROR,string); return 1; } GetPlayerPos(ID, PPos[0], PPos[1], PPos[2]); SetPlayerPos(ID, PPos[0], PPos[1], PPos[2]+4); format(string,sizeof(string),"[ADMIN] %s(%d) has slapped %s(%d)",PlayerName(playerid),playerid,PlayerName(ID),ID); SendClientMessageToAll(COLOR_ADMIN,string); GameTextForPlayer(ID,"Slapped!", 3000, 1); return 1; }