22.07.2013, 11:44
Hi guys, i got problem here (again :P ) .
Well, since i added some shop menus to my script and random message, this error keep happened :/ .. here is the error code
Here is my script
I myself dont know why this problem happened to me. :/
Ive tried to find on part of script who needed token " } " but, all good :/
Please help
And sorry for my english anyways :P
Well, since i added some shop menus to my script and random message, this error keep happened :/ .. here is the error code
Код:
E:\Rockstar Games\GTA San Andreas\samp03x_svr_R1-2_win32_3\gamemodes\warishere.pwn(26) : error 001: expected token: "}", but found "-string-"
Код:
public OnGameModeInit() { AddMenuItem(shop, 0, "Combat Shotgun"); AddMenuItem(shop, 0, "M4"); AddMenuItem(shop, 0, "SMG"); AddMenuItem(shop, 0, "Desert Eagle"); AddMenuItem(shop, 0, "Shotgun"); AddMenuItem(shop, 0, "Grenade"); } public OnPlayerSelectedMenu() { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == shop) { switch(row) { case 0: { GivePlayerWeapon(playerid, 27, 393); SendClientMessage(playerid, COLOR_ORANGE, "You have bought Combat Shotgun for 2500"); GivePlayerMoney(playerid, -2500); } case 1: { GivePlayerWeapon(playerid, 31, 393); SendClientMessage(playerid, COLOR_ORANGE, "You Have bought A M4 for 4500"); GivePlayerMoney(playerid, -4500); } case 2: { GivePlayerWeapon(playerid, 29, 450); SendClientMessage(playerid, COLOR_ORANGE, "You Have Bought SMG for 1500"); GivePlayerMoney(playerid, -1500); } case 3: { GivePlayerWeapon(playerid, 24, 393); SendClientMessage(playerid, COLOR_ORANGE, "You have bought A desert eagle for 1000"); GivePlayerMoney(playerid, -1000); } case 4: { GivePlayerWeapon(playerid, 25, 393); SendClientMessage(playerid, COLOR_ORANGE, "You Have bought Shotgun for 1500"); GivePlayerMoney(playerid, -1500); } case 5: { GivePlayerWeapon(playerid, 16, 40); SendClientMessage(playerid, COLOR_ORANGE, "You have bought package of grenade for 3500"); GivePlayerMoney(playerid, -3500); } } } return 1; }
Ive tried to find on part of script who needed token " } " but, all good :/
Please help
And sorry for my english anyways :P