[SOLVED] Command Not Working!
#3

you have one unneeded } which fucks everything up
pawn Код:
if(strcmp("/pickup",cmdtext, true) == 0)
    {
        new sendername;
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "%s Has Requested To Be Picked Up", sendername);
        SendClientMessageToAll(ADMIN_RED, string);
        SendClientMessage(playerid, GREEN, "Your Request To Be Picked Up Has Been Sent. Thank You.");
    return 1;
    }
This will do it

Also, castle's code defines "string" - doing that can make errors if you have "string" already defined, so better don't do that
Reply


Messages In This Thread
[SOLVED] Command Not Working! - by Alec24 - 14.03.2009, 22:06
Re: Command Not Working! - by Castle - 14.03.2009, 22:18
Re: Command Not Working! - by Zoopaman - 14.03.2009, 23:48
Re: Command Not Working! - by Alec24 - 15.03.2009, 00:17
Re: Command Not Working! - by Alec24 - 15.03.2009, 00:33
Re: [SOLVED] Command Not Working! - by Weirdosport - 15.03.2009, 00:43
Re: Command Not Working! - by Castle - 15.03.2009, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)