11.04.2014, 11:41
Hi,
I followed an topic about making an shop.. but I have 2 bases and 2 teams..
So I made this..
Error: error 035: argument type mismatch (argument 2)
The error is on this line:
Some help please?
I followed an topic about making an shop.. but I have 2 bases and 2 teams..
So I made this..
Код:
CMD:weapons(playerid, params[]) { new range[100]; if(GetPlayerTeam(playerid) == 1) //red { range = "-507.8125, 2107.421875, -267.578125, 2316.40625"; } else if(GetPlayerTeam(playerid) == 2) // blue { range = "3.90625, 1656.25,382.8125, 2121.0975"; } else { SendClientMessage(playerid, -1, "You first choose a team and then you can try it again ;)."); } if(IsPlayerInRangeOfPoint(playerid, range)) { ShowPlayerDialog(playerid, SHOP_DIALOG, DIALOG_STYLE_LIST, "Weapon Shop", "Deagle: $500\nSawn-Off: $1000\nM4: $2000\nSniper: $3000", "Select", "Exit");//Show them the dialog. return true; } else { SendClientMessage(playerid, -1, "You must be at your own base to buy weapons."); } return true; }
The error is on this line:
Код:
if(IsPlayerInRangeOfPoint(playerid, range))