must be assigned to an array
#6

pawn Код:
dcmd_changeakey(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new string[55];
        if(!IsNumeric(params[0])) return SendClientMessage(playerid, COLOR_LIGHTRED, "* Your security key must be digits only !");
        if(9999 > params[0] < 1000) return SendClientMessage(playerid, COLOR_LIGHTRED, "* Your security key must be 4 digits long only !");
        PlayerInfo[playerid][pSecKey] = params[0];
        format(string, sizeof(string), "* Security key changed to: %d !", PlayerInfo[playerid][pSecKey]);
        SendClientMessage(playerid, COLOR_GREY, string);
        return 1;
    }
    return 1;
}
in only 1 parameter is faster dont use sscanf...
Reply


Messages In This Thread
must be assigned to an array - by Jack_Leslie - 02.10.2011, 08:05
Re: must be assigned to an array - by Pharrel - 02.10.2011, 08:08
Re: must be assigned to an array - by Jafet_Macario - 02.10.2011, 08:09
Re: must be assigned to an array - by Jack_Leslie - 02.10.2011, 08:12
Re: must be assigned to an array - by [MWR]Blood - 02.10.2011, 08:15
Re: must be assigned to an array - by Pharrel - 02.10.2011, 08:18
Re: must be assigned to an array - by Jack_Leslie - 02.10.2011, 08:18
Re: must be assigned to an array - by =WoR=G4M3Ov3r - 02.10.2011, 08:21
Re: must be assigned to an array - by Jafet_Macario - 02.10.2011, 08:22
Re: must be assigned to an array - by [MWR]Blood - 02.10.2011, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)