Unknown Command for ID 25+
#8

pawn Код:
new name[MAX_PLAYER_NAME];
        new string[128];
        name = pName(targetid);
        if (name[targetid] == '_')
        name[targetid] = ' ';
MAX_PLAYER_NAME is 24 so if U have ID 25+
pawn Код:
if (name[targetid] == '_')
name[targetid] = ' ';
then array is crash and gives unknown command
btw
pawn Код:
COMMAND:check(playerid,params[])
{
    new giveplayerid;
    if(IsPlayerConnected(giveplayerid))
    {
giveplayerid returns 0 here so if ID 0 is not connected command dont work xd
Reply


Messages In This Thread
Unknown Command for ID 25+ - by Lynn - 25.06.2011, 17:57
Re: Unknown Command for ID 25+ - by Willow - 25.06.2011, 18:03
Re: Unknown Command for ID 25+ - by Lynn - 25.06.2011, 18:13
Re: Unknown Command for ID 25+ - by rjjj - 25.06.2011, 18:16
Re: Unknown Command for ID 25+ - by shitbird - 25.06.2011, 18:16
Re: Unknown Command for ID 25+ - by gimini - 25.06.2011, 18:17
Re: Unknown Command for ID 25+ - by Lynn - 25.06.2011, 19:50
Re: Unknown Command for ID 25+ - by Jefff - 25.06.2011, 20:23

Forum Jump:


Users browsing this thread: 2 Guest(s)