Commands not working.
#2

pawn Код:
CMD:knife(playerid, params[])
{
    if(playerVariables[playerid][pGroup] == 10) SpawnPlayerWeapon(playerid, 4, 1);
    return 1;
}
CMD:resetbook(playerid, params[])
{
    if(playerVariables[playerid][pPhoneBook] == 1) playerVariables[playerid][pPhoneBook] = 0; //I suspect you want to set it to 0 instead of 1
    return 1;
}
CMD:requestevent(playerid, params[])
{
    if(playerVariables[playerid][pAdminLevel] >= 3)
    {
        new string[128];
        format(string, sizeof(string), "%d has requested an event, /pm them to find out more information.", playerid);
        SendClientMessage(playerid, COLOUR_ORANGE, string);
    }
    return 1;
}
https://sampwiki.blast.hk/wiki/Control_Structures#if
Reply


Messages In This Thread
Commands not working. - by Jack.7331 - 13.03.2012, 18:17
Re: Commands not working. - by [ABK]Antonio - 13.03.2012, 18:21
Re: Commands not working. - by Jack.7331 - 13.03.2012, 19:12
Re: Commands not working. - by John Rockie - 13.03.2012, 19:13
Re: Commands not working. - by Jack.7331 - 13.03.2012, 19:17
Re: Commands not working. - by Jack.7331 - 13.03.2012, 21:03
Re: Commands not working. - by FalconX - 13.03.2012, 23:39
Re: Commands not working. - by Jack.7331 - 14.03.2012, 07:41

Forum Jump:


Users browsing this thread: 1 Guest(s)