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