28.10.2010, 01:01
Yeah, so i have simple cmds, for example: /burn < playerid >, /slap <playerid>, /AKill < playerid >
But, they don't work if i enter /burn 3
It works all up to 2
Any cmd on my script will throw out that error. Here are some simple cmds :
Yes, not even that pm cmd is working ( i also know that sscanf isn't needed to process those cmds, but who cares
)
----------
Not sure what else i can show to simplify the problem. If y'all need any more pieces of code, ask!!
But, they don't work if i enter /burn 3
It works all up to 2
Any cmd on my script will throw out that error. Here are some simple cmds :
pawn Код:
CMD:burn(playerid,params[])
{
if(GetPVarInt(playerid, "Level") >= 3)
{
new
ID,
Float:X,
Float:Y,
Float:Z;
if(unformat(params,"r", ID)) return SendClientMessage(playerid, COLOR_RED, "* Usage: /Burn <PlayerID>");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, COLOR_RED, "* That user is not connected!");
GetPlayerPos(ID, X, Y, Z);
SendFMessage(ID, COLOR_LIGHTBLUE, "Admin: %s(%d) has burnt you!", pName(playerid), playerid);
return CreateExplosion(X, Y, Z + 3, 1, 10);
}
else return AdminCmd(playerid, 3);
}
pawn Код:
CMD:pm(playerid, params[])
{
new pID;
if(sscanf(params, "rs[128]", pID, params)) return SendClientMessage(playerid, COLOR_RED, "* Usage: /PM < PlayerID > < Message >");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "* That user is not connected!");
SendFMessage(pID, COLOR_PEACHPUFF, "PM From: %s(%d) - %s", pName(playerid), playerid, params);
SendFMessage(playerid, COLOR_PEACHPUFF, "PM Sent To: %s(%d) - %s", pName(pID), pID, params);
return 1;
}

----------
Not sure what else i can show to simplify the problem. If y'all need any more pieces of code, ask!!