If statement not working
#4

Quote:
Originally Posted by Lexi'
Посмотреть сообщение
Try to this code
pawn Код:
COMMAND:vbuy(playerid, params[])
{
    if(VehicleInfo[playerid][Hascar] = 1)
    {
        if(IsPlayerInRangeOfPoint(playerid, 30.0,2130.2834,-1145.3992,24.6749))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Loading Car buying menu.");
            ShowPlayerDialog(playerid,85,DIALOG_STYLE_LIST,"Vehicle Selection","1. Landstalker $75,000\r\n2. Buffalo $60,000\r\n3. Sentinel $40,000\r\n4. Infernus $125,000\r\n5. Bullet $100,000\r\n6. PCJ600 $50,000","Buy", "Cancel");
        }
    }
    else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: you own the max limit of cars at the moment.");
    return 1;
}
Wrong,wrong wrong it's "==" not "=",inside the if statement check :P
Reply


Messages In This Thread
If statement not working - by jueix - 23.07.2012, 12:17
Re: If statement not working - by Cjgogo - 23.07.2012, 12:44
Re: If statement not working - by Glint - 23.07.2012, 12:47
Re: If statement not working - by Cjgogo - 23.07.2012, 12:49
Re: If statement not working - by Glint - 23.07.2012, 13:01
Re: If statement not working - by Cjgogo - 23.07.2012, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)