strlen(str[]) doesn't work :/
#1

pawn Код:
new BanInfoIp[16];
if (sscanf(params, "s",BanInfoIp)) return SendClientMessage(playerid, red, "[SERVER]: Naudojimas: \"/baninfo [ip]\"");
       
        if(strlen(BanInfoIp) >= 16)
            return SendClientMessage(playerid,red,"[SERVER]: Command too long...");
Why this doesnt work? If i write ~18-19 symbols, thats ok, script shows "command too long", if i write more ~23-25 script just shows SERVER: Unknown command :/ how to fix?
Reply


Messages In This Thread
strlen(str[]) doesn't work :/ - by Dreftas - 28.06.2009, 08:05
Re: strlen(str[]) doesn't work :/ - by illay - 28.06.2009, 08:40
Re: strlen(str[]) doesn't work :/ - by Dreftas - 28.06.2009, 08:46
Re: strlen(str[]) doesn't work :/ - by Goldkiller - 28.06.2009, 09:01
Re: strlen(str[]) doesn't work :/ - by Dreftas - 28.06.2009, 09:09
Re: strlen(str[]) doesn't work :/ - by woot - 28.06.2009, 09:12
Re: strlen(str[]) doesn't work :/ - by Dreftas - 28.06.2009, 09:14

Forum Jump:


Users browsing this thread: 1 Guest(s)