09.02.2014, 19:28
Okay I have two problems, so I'll structure this so it's easy to understand.
PROBLEM 1:I'm getting warning 209 for the following piece of code.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) if(dialogid==1 && response==1) { switch(listitem) { case 0: { if (GetPlayerMoney(playerid) < 12500) return SendClientMessage(playerid, 0x00FFFFAA, "You don't have enough cash to buy this Weapon."); GivePlayerWeapon(playerid, 24, 0x7FFFFFFF); GivePlayerMoney(playerid, -12500); return 1; } case 1: { if (GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, 0x00FFFFAA, "You don't have enough cash to buy this Weapon."); GivePlayerWeapon(playerid, 27, 0x7FFFFFFF); GivePlayerMoney(playerid, -15000); return 1; } case 2: { if (GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, 0x00FFFFAA, "You don't have enough cash to buy this Weapon."); GivePlayerWeapon(playerid, 31, 0x7FFFFFFF); GivePlayerMoney(playerid, -20000); return 1; } case 3: { if (GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0x00FFFFAA, "You don't have enough cash to buy this Weapon."); SetPlayerArmour(playerid, 100); GivePlayerMoney(playerid, -10000); return 1; } } return 0; }
PROBLEM 2:
When I run my server I get this (with the above warning going on)