Player ID: 3 is not working
#1

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 :

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;
}
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!!
Reply


Messages In This Thread
Player ID: 3 is not working - by [L3th4l] - 28.10.2010, 01:01
Re: Player ID: 3 is not working - by Zamaroht - 28.10.2010, 01:06
Re: Player ID: 3 is not working - by [L3th4l] - 28.10.2010, 01:12
Re: Player ID: 3 is not working - by Scenario - 28.10.2010, 02:57
Re: Player ID: 3 is not working - by [L3th4l] - 28.10.2010, 21:27
Re: Player ID: 3 is not working - by [L3th4l] - 29.10.2010, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)