SA-MP Forums Archive
invalid function or declaration - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: invalid function or declaration (/showthread.php?tid=287478)



invalid function or declaration - janx221 - 03.10.2011

(45225) : error 010: invalid function or declaration
(45233) : error 010: invalid function or declaration
(45241) : error 010: invalid function or declaration

Line 45225:
pawn Код:
if(spot[playerid] == SPOT_GS_DILLIMORE)

Line 45233:

pawn Код:
if(int_b[playerid] == INTB_DILLIMORE && GetPlayerInterior(playerid) == 16)
Line 45241
pawn Код:
else if(IsPlayerInSphere(i,691.5836,-546.8424,16.3359,2))



Re: invalid function or declaration - Tigerkiller - 03.10.2011

post 3 lines for and after the error lines


Re: invalid function or declaration - Jafet_Macario - 03.10.2011

Show us where you defined SPOT_GS_DILLIMORE INTB_DILLIMORE and IsPlayerInSphere function.


Re: invalid function or declaration - janx221 - 03.10.2011

pawn Код:
return 1;
        }

        if(spot[playerid] == SPOT_GS_DILLIMORE) // General Store Dillimore Enter
        {
        SetPlayerPos(playerid,-25.1320,-139.0662,1003.5469);
        SetPlayerInterior(playerid,16);
        SetPlayerFacingAngle(playerid,0.0000);
        int_b[playerid] = INTB_DILLIMORE;
        }
       
        if(int_b[playerid] == INTB_DILLIMORE && GetPlayerInterior(playerid) == 16) // General Store Dillimore Exit
        {
        SetPlayerPos(playerid,690.0602,-546.5984,16.3359);
        SetPlayerInterior(playerid,0);
        SetPlayerFacingAngle(playerid,91.9041);
        int_b[playerid] = INTB_NONE;
        }
       
         else if(IsPlayerInSphere(i,691.5836,-546.8424,16.3359,2)) // General Store [DILLIMORE]
      {
      GameTextForPlayer(i,"~b~General Store~y~:~w~ dillimore~n~~w~use ~y~/~w~enter ~y~/~w~exit",1200, 3);
      spot[i] = SPOT_GS_DILLIMORE;
      }



Re: invalid function or declaration - janx221 - 03.10.2011

up.c.


Re: invalid function or declaration - janx221 - 03.10.2011

cmon help...


Re: invalid function or declaration - AndreT - 03.10.2011

What are the #define lines SPOT_GS_DILLIMORE and INTB_DILLIMORE is what he meant. Show them and also post your whole IsPlayerInSphere function!


Re: invalid function or declaration - janx221 - 03.10.2011

pawn Код:
#define INTB_DILLIMORE 0
#define SPOT_GS_DILLIMORE 4

return 1;
        }

        if(spot[playerid] == SPOT_GS_DILLIMORE) // General Store Dillimore Enter
        {
        SetPlayerPos(playerid,-25.1320,-139.0662,1003.5469);
        SetPlayerInterior(playerid,16);
        SetPlayerFacingAngle(playerid,0.0000);
        int_b[playerid] = INTB_DILLIMORE;
        }
       
        if(int_b[playerid] == INTB_DILLIMORE && GetPlayerInterior(playerid) == 16) // General Store Dillimore Exit
        {
        SetPlayerPos(playerid,690.0602,-546.5984,16.3359);
        SetPlayerInterior(playerid,0);
        SetPlayerFacingAngle(playerid,91.9041);
        int_b[playerid] = INTB_NONE;
        }
       
         else if(IsPlayerInSphere(i,691.5836,-546.8424,16.3359,2)) // General Store [DILLIMORE]
      {
      GameTextForPlayer(i,"~b~General Store~y~:~w~ dillimore~n~~w~use ~y~/~w~enter ~y~/~w~exit",1200, 3);
      spot[i] = SPOT_GS_DILLIMORE;
      }



Re: invalid function or declaration - janx221 - 03.10.2011

some1?


Re: invalid function or declaration - janx221 - 03.10.2011

up!,..,.