Jump to content
  • 0

error 010: invalid function or declaration


Guest NiGhTWoLF

Question

Guest NiGhTWoLF

Ce nu este bine la codul asta?  ???

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
}
Apar erorile astea:
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 (c) 1997-2006, ITB CompuPhase


8 Errors.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Guest NiGhTWoLF

mihai97" post="15828" timestamp="1244744487"]

acolo trebuie

case 0:

case 1:

case 2:

case 3:

nu

case 1:

case 2:

case 3:

case 4:

adica se incepe cu 0 nu cu 1 ;)

Aceleasi erori apar si dupa ce schimb

case 0:

case 1:

case 2:

case 3:

:(

Link to comment
Share on other sites

Guest NiGhTWoLF

=-" post="15832" timestamp="1244744982"]

Incearca la linia 4971 sa pui return 0;

Tot aceleasi erori la aceleasi linii apar si cu return 0; :(

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.