Compile Error. - 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: Compile Error. (
/showthread.php?tid=493384)
Compile Error. -
aDo7 - 08.02.2014
Hello, i got GM have no errors, but while compiling i got 4 errors, i think i have lost files on my pawno..
PHP код:
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(16763) : warning 209: function "Streamer_OnPlayerPickUpPickup" should return a value
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(35484) : error 017: undefined symbol "Get3DZone"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(35484) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(94020) : error 017: undefined symbol "Get3DZone"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(94020) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(94054) : error 017: undefined symbol "Get3DZone"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(94054) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(107736) : error 017: undefined symbol "Get3DZone"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(107736) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Re: Compile Error. -
aDo7 - 08.02.2014
I tried to fix it, by adding this CMD
PHP код:
stock Get3DZone(Float:x, Float:y, Float:z, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
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] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5])
{
return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return 0;
}
But got this errors
PHP код:
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(664) : error 017: undefined symbol "gSAZones"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(664) : error 036: empty statement
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(664) : error 017: undefined symbol "i"
C:\Documents and Settings\Administrator\My Documents\Downloads\Compressed\MXRP\MXRP\srp3.pwn(664) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Re: Compile Error. -
aDo7 - 08.02.2014
Bump anyone?