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.
  • Similar Content

    • By Andrei SA-MP
      SQL = mysql_connect("localhost", "root", "proiect", "");
    • By TheGodfather
      Salut, aveti idee cum pot sa rezolv problema aceasta?
      [02:54:59] Loading plugin: streamer.so
      [02:54:59] Failed (/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by plugins/streamer.so))
    • By Matei02Mihai
      Salut. Am vrut sa fac un gamemode micut pentru vizualizarea modpack-urilor, dar atunci cand pornesc serverul, imi da eroarea <<[09:35:17] Script[gamemodes/modpacks.amx]: Run time error 19: "File or function is not found">>. Am incercat sa pun acelasi gamemode pe un alt server. Acolo imi merge cum trebuie. Daca intru pe server cu acea eroare, face bugul ala clasic: te da sub pamant in spate la farmer, iar dupa te spawneaza in acelasi loc, dar pe pamant. Am incercat mai multe metode cu care credeam ca pot fixa bugul, cum ar fi:
      - deschiderea serverului cu drepturi de administrator;
      - schimbarea locatiei serverului;
      - instalarea .net framework 3.5;
      - reacerea serverului
      - dezactivare optiunii "Doar in citire"
    • By Wreeper
      Linia in cauza: SetPlayerName(id, amount);
      Daca scot chestia asta, merge total perfect functia..
      De ce se intampla asta?
    • By Andrei SA-MP
      public OnPlayerConnect(playerid) {
           gQuery[0] = EOS;
           mysql_format(SQL, gQuery, sizeof(gQuery), "SELECT * FROM `users` WHERE `Name` = '%s' LIMIT 1', GetName(playerid));
           mysql_tquery(SQL, gQuery, "checkAccount', "i", playerid);
           return 1;
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.