03.03.2009, 18:01
Hey All!
I need a little help! I can't solve this problem:
Errors:
D:\TEST\filterscripts\pickupok.pwn(115 : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1160) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1162) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1164) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1171) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(117 : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1180) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1187) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1195) : error 010: invalid function or declaration
Please help me!
I need a little help! I can't solve this problem:
Код:
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:weapon = GetPlayerMenu(playerid); if(weapon == gun) { switch(row) { case 0: { if(GetPlayerMoney(playerid) >= 1500) { GivePlayerMoney(playerid, -1500); GivePlayerWeapon(playerid, 24, 100); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Desert Eagle-t."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 1: { if(GetPlayerMoney(playerid) >= 2500) { GivePlayerMoney(playerid, -2500); GivePlayerWeapon(playerid, 26, 50); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy SawnOff-ot."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 2: { if(GetPlayerMoney(playerid) >= 3500) { GivePlayerMoney(playerid, -3500); GivePlayerWeapon(playerid, 34, 50); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy SniperRifle-t."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 3: { if(GetPlayerMoney(playerid) >= 4500) { GivePlayerMoney(playerid, -4500); GivePlayerWeapon(playerid, 31, 200); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy M4-et."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 4: { if(GetPlayerMoney(playerid) >= 5500) { GivePlayerMoney(playerid, -5500); GivePlayerWeapon(playerid, 32, 200); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy TEC9-et."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 5: { if(GetPlayerMoney(playerid) >= 8500) { GivePlayerMoney(playerid, -8500); GivePlayerWeapon(playerid, 9, 1); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Lбncfűrйszt."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 6: { if(GetPlayerMoney(playerid) >= 100) { GivePlayerMoney(playerid, -100); GivePlayerWeapon(playerid, 4, 1); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Kйst."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 7: { if(GetPlayerMoney(playerid) >= 10500) { GivePlayerMoney(playerid, -10500); GivePlayerWeapon(playerid, 33, 200); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Rifle-t."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 8: { if(GetPlayerMoney(playerid) >= 500) { GivePlayerMoney(playerid, -500); SetPlayerArmour(playerid, 100.0); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Pajzsot."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 9: { if(GetPlayerMoney(playerid) >= 100) { GivePlayerMoney(playerid, -100); GivePlayerWeapon(playerid, 46, 1); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Ejtőernyőt."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 10: { HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } } return 1; } if(weapon == sexshop) { switch(row) { case 0: { if(GetPlayerMoney(playerid) >= 1500) { GivePlayerMoney(playerid, -1500); GivePlayerWeapon(playerid, 24, 100); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Desert Eagle-t."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } case 1: { if(GetPlayerMoney(playerid) >= 2500) { GivePlayerMoney(playerid, -2500); GivePlayerWeapon(playerid, 26, 50); SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy SawnOff-ot."); ShowMenuForPlayer(weapon,playerid); } else { GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5); HideMenuForPlayer(weapon, playerid); TogglePlayerControllable(playerid, 1); } } } return 1; }
D:\TEST\filterscripts\pickupok.pwn(115 : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1160) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1162) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1164) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1171) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(117 : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1180) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1187) : error 010: invalid function or declaration
D:\TEST\filterscripts\pickupok.pwn(1195) : error 010: invalid function or declaration
Please help me!