Error 014: Invalid statement
#1

So, just a little information about what the script is suppose to do, I made the script as an admin menu (Do commands inside the dialogs), but the last Response i added seems to give me errors, it is the same as the rest but still it gives errors.

I have been search ways to fix it but the ways i tried didn't seem to change anything.

Код:
C:\Users\Corey\Desktop\SAMP\Scripts\Gamemodes\new Gm\gamemodes\GM.pwn(9464) : error 014: invalid statement; not in switch
C:\Users\Corey\Desktop\SAMP\Scripts\Gamemodes\new Gm\gamemodes\GM.pwn(9464) : warning 215: expression has no effect
C:\Users\Corey\Desktop\SAMP\Scripts\Gamemodes\new Gm\gamemodes\GM.pwn(9464) : error 001: expected token: ";", but found ":"
C:\Users\Corey\Desktop\SAMP\Scripts\Gamemodes\new Gm\gamemodes\GM.pwn(9464) : error 029: invalid expression, assumed zero
C:\Users\Corey\Desktop\SAMP\Scripts\Gamemodes\new Gm\gamemodes\GM.pwn(9464) : fatal error 107: too many error messages on one line
This is also the Response for it.

Код:
  		case DIALOG_AMENU5: // Score set ((Also line 9464))
	{
		if(response)
		{
			targetID = strval(inputtext);
			if(IsPlayerConnected(targetID))
			{
				ShowPlayerDialog(playerid, DIALOG_AMENU5A, DIALOG_STYLE_INPUT, "Australian Roleplay Server Admin Menu", "Enter in the player id, you want the code to effect.", "Next", "Close");				return 1;
			}
			else
			{
				SendClientMessage(playerid, 0xFFFFFFF,"[ARPS] We could not find a player with that ID.");
				return 1;
			}
		}
		else if(!response)
		{
			SendClientMessage(playerid, 0xFFFFFFF,"[ARPS] You do not have the required admin level, to use this command.");
		}
	}
This one is just suppose to make the admin enter in the ID of the player they want the command to do to them.
Reply


Messages In This Thread
Error 014: Invalid statement - by ghost556 - 27.12.2013, 11:52
Re: Error 014: Invalid statement - by Konstantinos - 27.12.2013, 11:54
Re: Error 014: Invalid statement - by xVIP3Rx - 27.12.2013, 11:55
Respuesta: Re: Error 014: Invalid statement - by ghost556 - 27.12.2013, 11:59
Re: Error 014: Invalid statement - by Konstantinos - 27.12.2013, 12:03
Respuesta: Re: Error 014: Invalid statement - by ghost556 - 27.12.2013, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)