undefined get3dzone - 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: undefined get3dzone (
/showthread.php?tid=394022)
undefined get3dzone -
HarryPotter - 20.11.2012
hey, i got those errors
PHP код:
C:\Users\User\Desktop\State City Roleplay\gamemodes\BACKUP OF SCRIPT.pwn(56696) : error 017: undefined symbol "Get3DZone"
C:\Users\User\Desktop\State City Roleplay\gamemodes\BACKUP OF SCRIPT.pwn(56696) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\State City Roleplay\gamemodes\BACKUP OF SCRIPT.pwn(56730) : error 017: undefined symbol "Get3DZone"
C:\Users\User\Desktop\State City Roleplay\gamemodes\BACKUP OF SCRIPT.pwn(56730) : warning 202: number of arguments does not match definition
the lines are:
PHP код:
56696: Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
56730: Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
my stock in gtazones.inc:
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;
}
thanks a lot for helpers !
Re: undefined get3dzone -
Ironboy - 21.11.2012
Put that stock on the script and try.
Re: undefined get3dzone -
HarryPotter - 21.11.2012
Didn't help tho I got fine with it, thanks for helping.