Weird compiling error
#2

pawn Код:
if(!strlen(params))
    {
        SendClientMessage(playerid,COLOR_ERROR,"Usage: /ac (Message)");
        return 1;
    }
That's a wrong usage, probably that line causes this. You gotta use sscanf for a command like this and it should be like:

pawn Код:
new text[128];
if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, "USAGE: /ac [Message]");
Reply


Messages In This Thread
Weird compiling error - by _Khaled_ - 24.08.2012, 15:58
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:02
Re: Weird compiling error - by _Khaled_ - 24.08.2012, 16:10
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:14
Re: Weird compiling error - by kbalor - 24.08.2012, 16:16
AW: Weird compiling error - by Mellnik - 24.08.2012, 16:18
Re: Weird compiling error - by Calabresi - 24.08.2012, 16:23
Re: Weird compiling error - by _Khaled_ - 24.08.2012, 20:08
Re: Weird compiling error - by leonardo1434 - 24.08.2012, 21:24
Re: Weird compiling error - by clarencecuzz - 24.08.2012, 21:38

Forum Jump:


Users browsing this thread: 2 Guest(s)