[HELP] String errors..
#1

pawn Код:
if(strfind(cmdtext, "|", true) != -1)
    {
        SendClientMessageEx(playerid, COLOR_RED, "You cannot use the '|' character in commands.");
        return 0;
    }
   
        if(strfind(cmdtext, "duffelswithbags", true) != -1)
        format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /duffelswithbags... <-- dumbass", GetPlayerNameEx(playerid));
        ABroadCast(COLOR_YELLOW,string,1);
 {
    PlayerInfo[playerid][pBanned] = 1;
    new ip[32];
    GetPlayerIp(playerid,ip,sizeof(ip));
    AddBan(ip);
    Kick(playerid);
                return 1;
        return 0;
    }
I dont know whats wrong with this.. but it gives me the following errors.

error 017: undefined symbol "string"
error 017: undefined symbol "string"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

All Errors are on this line:

format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /duffelswithbags... <-- dumbass", GetPlayerNameEx(playerid));
Reply


Messages In This Thread
[HELP] String errors.. - by Oscii - 09.05.2012, 21:01
Re: [HELP] String errors.. - by ViniBorn - 09.05.2012, 21:11
Re: [HELP] String errors.. - by Oscii - 09.05.2012, 21:30
Re: [HELP] String errors.. - by ViniBorn - 09.05.2012, 21:35
Re: [HELP] String errors.. - by Oscii - 09.05.2012, 21:51
Re: [HELP] String errors.. - by Face9000 - 09.05.2012, 22:07
Re: [HELP] String errors.. - by Oscii - 09.05.2012, 22:08
Re: [HELP] String errors.. - by ViniBorn - 09.05.2012, 22:14
Re: [HELP] String errors.. - by Face9000 - 09.05.2012, 22:17
Re: [HELP] String errors.. - by Snipa - 09.05.2012, 22:41

Forum Jump:


Users browsing this thread: 1 Guest(s)