SA-MP Forums Archive
Fail Compiling - 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: Fail Compiling (/showthread.php?tid=389967)



Fail Compiling - Serizawa - 04.11.2012

Код:
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : error 012: invalid function call, not a valid address
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : error 001: expected token: ";", but found ")"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : error 029: invalid expression, assumed zero
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);



Re: Fail Compiling - verlaj - 04.11.2012

Did you added stock or something ? and defined the variables ?
pawn Код:
new Location // etc...



Re: Fail Compiling - Serizawa - 04.11.2012

Yes
pawn Код:
new GetPlayer2DZone



Re: Fail Compiling - Faisal_khan - 04.11.2012

Make a stock of GetPlayer2DZone.


Re: Fail Compiling - Serizawa - 04.11.2012

YOu know that im noob script..PLease help me make the stock


Re: Fail Compiling - Faisal_khan - 04.11.2012

How the hell I would know that you are a n00b scripter! Anywaz, here's the stock which I found:
pawn Код:
stock GetPlayer2DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        for(new i = 0; i != sizeof(gSAZones); i++ )
        {
                if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
                {
                    return format(zone, len, gSAZones[i][SAZONE_NAME], 0);

                }
        }
        return 0;
}



Re: Fail Compiling - Serizawa - 04.11.2012

Код:
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\pawno\include\bodyparts.inc(43) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\pawno\include\bodyparts.inc(43) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\pawno\include\bodyparts.inc(43) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\pawno\include\bodyparts.inc(127) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\pawno\include\bodyparts.inc(127) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\pawno\include\bodyparts.inc(127) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3042) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3344) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3344) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3344) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3405) : error 021: symbol already defined: "GetPlayer2DZone"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3408) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3409) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3411) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3413) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3415) : error 054: unmatched closing brace ("}")
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3417) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3420) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3420) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3420) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3437) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3437) : warning 219: local variable "y" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3437) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3466) : error 012: invalid function call, not a valid address
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3466) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3466) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3466) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3466) : error 001: expected token: ";", but found ")"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3466) : error 029: invalid expression, assumed zero
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3466) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


11 Errors.



Re: Fail Compiling - Serizawa - 04.11.2012

Код:
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3344) : error 021: symbol already defined: "GetPlayer2DZone"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3346) : error 017: undefined symbol "z"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3347) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3349) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3351) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3354) : error 010: invalid function or declaration
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : error 012: invalid function call, not a valid address
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : error 001: expected token: ";", but found ")"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : error 029: invalid expression, assumed zero
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3451) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Fixed just now..but this error..


Re: Fail Compiling - Serizawa - 04.11.2012

pawn Код:
stock GetPlayer2DZone(zone[], len, Float:x, Float:y, Float:z)
{
    #pragma unused z
    for(new i = 0; i != sizeof(gSAZones); i++)
    {
        if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
        {
            return format(zone, len, gSAZones[i][SAZONE_NAME]);
        }
    }
    return format(zone, len, "San Andreas");
}
Deleted This...

Код:
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3438) : error 012: invalid function call, not a valid address
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3438) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3438) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3438) : warning 215: expression has no effect
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3438) : error 001: expected token: ";", but found ")"
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3438) : error 029: invalid expression, assumed zero
C:\Users\AztecasGamerzzz\Documents\GOod Servers\TR-RP\gamemodes\trrp2.pwn(3438) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
This error came out


Re: Fail Compiling - Faisal_khan - 04.11.2012

Paste the goddamn lines ffs!