Local variable not saving
#4

PHP код:
CMD:test(playeridparams[])
{
    if(
PlayerData[playerid][WantedLevel] == 5) return SendClientMessage(playerid,-1,"Your wanted level is already 5");
    else
    {
        
PlayerData[playerid][WantedLevel] = 5;
        
SendClientMessage(playerid,-1,"You wanted level is now 5");
    }
    return 
1;
}
CMD:check(playeridparams[])
{
    if(
PlayerData[playerid][WantedLevel] != 5) return SendClientMessage(playerid, -1"You can't use this command because your WL is not 5!");
    else
    {
        if(
PlayerData[playerid][WantedLevel] == 5) return SendClientMessage(playerid, -1,"You wanted level is 5");
    }
    return 
1;

If I understand you, you need something like this:
Reply


Messages In This Thread
Local variable not saving - by romas3110 - 13.04.2015, 04:06
Re: Local variable not saving - by SequenceCuz - 13.04.2015, 06:46
Re: Local variable not saving - by romas3110 - 13.04.2015, 07:57
Re: Local variable not saving - by NoDi522 - 13.04.2015, 16:03
Re: Local variable not saving - by Azula - 13.04.2015, 16:06
Re : Local variable not saving - by Dutheil - 13.04.2015, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)