Scripting error - "Expected token "," but found "}"
#5

I get this error with my scripting :

Код:
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2335 -- 2336) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2339 -- 2340) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2343 -- 2344) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2347 -- 2348) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2351 -- 2352) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2355 -- 2356) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2359 -- 2360) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2363 -- 2364) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2367 -- 2368) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2371 -- 2372) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2375 -- 2376) : error 001: expected token: ",", but found "}"
C:\Users\Moggs\Downloads\elg\gamemodes\bb_freeroam.pwn(2379 -- 2381) : error 001: expected token: ",", but found "}"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
If you want the scripting before, here you go:

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	pdialog[playerid] = -1;

	new string[50], tmp2[256], playername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME], tmp[32], temp1, temp2, temp3;
	GetPlayerName(playerid, playername, MAX_PLAYER_NAME);

	if (dialogid == DIALOG_ACTIONS)
	{
		if (response)
		{
			if (GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED)
				return SendClientMessage2(playerid, COLOR_RED, "Error: You are cuffed!");
			lganim[playerid] = false;
			if (listitem == 0) {
				ApplyAnimation2(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Sitting'.");
			}
			else if (listitem == 1) {
				ApplyAnimation2(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Plant Bomb'.");
			}
			else if (listitem == 2) {
				ApplyAnimation2(playerid, "ped", "endchat_03", 4.0, 0, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Wave'.");
			}
			else if (listitem == 3) {
				ApplyAnimation2(playerid, "MISC", "Scratchballs_01", 4.0, 0, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Scratch Balls'.");
			}
			else if (listitem == 4) {
				ApplyAnimation2(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Cross Arms'.");
			}
			else if (listitem == 5) {
				ApplyAnimation2(playerid, "ped", "cower", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Hide'.");
			}
			else if (listitem == 6) {
				ApplyAnimation2(playerid, "ped", "handsup", 4.0, 0, 0, 0, 1, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Hands Up'.");
			}
			else if (listitem == 7) {
				ApplyAnimation2(playerid, "FOOD", "EAT_Vomit_P", 4.0, 0, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Vomit'.");
			}
			else if (listitem == 8) {
				ApplyAnimation2(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Smoking'.");
			}
			else if (listitem == 9) {
				ApplyAnimation2(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Lay'.");
			}
			else if (listitem == 10) {
				ApplyAnimation2(playerid, "ped", "IDLE_chat", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Talking'.");
			}
			else if (listitem == 11) {
				ApplyAnimation2(playerid, "ped", "endchat_02", 4.0, 0, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'No Way'.");
			}
			else if (listitem == 12) {
				ApplyAnimation2(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Crack'.");
			}
			else if (listitem == 13) {
				ApplyAnimation2(playerid, "DANCING", "dnce_M_a", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Dance 1'.");
			}
			else if (listitem == 14) {
				ApplyAnimation2(playerid, "DANCING", "dnce_M_b", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Dance 2'.");
			}
			else if (listitem == 15) {
				ApplyAnimation2(playerid, "DANCING", "dnce_M_c", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Dance 3'.");
			}
			else if (listitem == 16) {
				ApplyAnimation2(playerid, "DANCING", "dnce_M_d", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Dance 4'.");
			}
			else if (listitem == 17) {
				ApplyAnimation2(playerid, "DANCING", "dnce_M_e", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Dance 5'.");
			}
			else if (listitem == 18) {
				ApplyAnimation2(playerid, "ped", "SEAT_idle", 4.0, 1, 0, 0, 0, -1);
				SendClientMessage2(playerid, COLOR_WHITE, "ACTION: Applied animation 'Chair Sitting'.");
			}

		}
		return 1;
	}
I've just wanted to add in some animations to the list.
Reply


Messages In This Thread
Scripting error - "Expected token "," but found "}" - by JeffDiamond - 29.10.2014, 17:24
Re: Scripting error - "Expected token "," but found "}" - by M4D - 29.10.2014, 17:30
Re: Scripting error - "Expected token "," but found "}" - by DanishHaq - 29.10.2014, 17:36
Re: Scripting error - "Expected token "," but found "}" - by Glossy42O - 29.10.2014, 17:41
Re: Scripting error - "Expected token "," but found "}" - by JeffDiamond - 29.10.2014, 17:59

Forum Jump:


Users browsing this thread: 3 Guest(s)