Fail Compiling
#1

Код:
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);
Reply
#2

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

Yes
pawn Код:
new GetPlayer2DZone
Reply
#4

Make a stock of GetPlayer2DZone.
Reply
#5

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

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;
}
Reply
#7

Код:
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.
Reply
#8

Код:
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..
Reply
#9

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
Reply
#10

Paste the goddamn lines ffs!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)