invalid function or declaration
#1

Код:
if (InAFoodPlace[playerid] != 0) //line 4937
	{
		TogglePlayerControllable(playerid, 0);
		switch (InAFoodPlace[playerid])  //line 4940
		{
			case 1: // chicken      //line 4937
			{
				ShowMenuForPlayer(chickenmenu, playerid);
				SetPlayerPos(playerid,368.9714,-6.2486,1001.8516);
				SetPlayerFacingAngle(playerid, 357.0132);
			}
			case 2: // burger      //line 4948
			{
				ShowMenuForPlayer(burgermenu, playerid);
				SetPlayerPos(playerid,376.8571,-67.6620,1001.5151);
				SetPlayerFacingAngle(playerid, 357.0132);
			}
			case 3: // pizza         //line 4954
			{
				ShowMenuForPlayer(pizzamenu, playerid);
				SetPlayerPos(playerid,375.6895,-118.9683,1001.4995);
				SetPlayerFacingAngle(playerid, 357.0132);
			}
			case 4: // donut     //line 4960
			{
				ShowMenuForPlayer(donutshop, playerid);
				SetPlayerPos(playerid,379.0611,-186.6032,1000.6328);
				SetPlayerFacingAngle(playerid, 280);
			}
		}
		SetCameraBehindPlayer(playerid);
		return 1;           //line 4968
	}
	DisablePlayerCheckpoint(playerid);
	return 1;           //line 4971
}
I don't know what is wrong with this code. .
Can somebody help me?
I get this errors:


Код:
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4937) : error 010: invalid function or declaration
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4940) : error 010: invalid function or declaration
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4942) : error 010: invalid function or declaration
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4948) : error 010: invalid function or declaration
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4954) : error 010: invalid function or declaration
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4960) : error 010: invalid function or declaration
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4968) : error 010: invalid function or declaration
C:\Documents and Settings\wimdox\Desktop\FuNZoNe\gamemodes\RPG-OnesTi.pwn(4971) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Reply
#2

Download pawn-lang.pdf and read what that error means and you'll know how to fix it.
Reply
#3

Quote:
Originally Posted by Don Correlli
Download pawn-lang.pdf and read what that error means and you'll know how to fix it.
Where I can find this tutorial?
Reply
#4

http://www.sendspace.com/file/7zcpm5
Reply
#5

Quote:
Originally Posted by Don Correlli

Thanks
Reply
#6

You're welcome. Read it, there's everything about Pawn in it, not just errors and warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)