Jump to content
  • 0

error 010: invalid function or declaration


Question

Guest NiGhTWoLF
Posted

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.

6 answers to this question

Recommended Posts

  • 0
Posted

ai uitat sa inchizi vreo { pe undeva, ia-ti codu la puricat si aranjat si o sa o gasesti.

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Guest mihai97
Posted

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 ;)

Guest NiGhTWoLF
Posted

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:

:(

  • Administrator
Posted

Incearca la linia 4971 sa pui return 0;

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Guest NiGhTWoLF
Posted

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

Incearca la linia 4971 sa pui return 0;

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

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.