SA-MP Forums Archive
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 017undefined symbol "Get3DZone"
C:\Users\User\Desktop\State City Roleplay\gamemodes\BACKUP OF SCRIPT.pwn(56696) : warning 202number of arguments does not match definition
C
:\Users\User\Desktop\State City Roleplay\gamemodes\BACKUP OF SCRIPT.pwn(56730) : error 017undefined symbol "Get3DZone"
C:\Users\User\Desktop\State City Roleplay\gamemodes\BACKUP OF SCRIPT.pwn(56730) : warning 202number of arguments does not match definition 
the lines are:

PHP код:
56696Get3DZone(carPos[0], carPos[1], carPos[2], zonesizeof(zone));
56730Get3DZone(carPos[0], carPos[1], carPos[2], zonesizeof(zone)); 
my stock in gtazones.inc:

PHP код:
stock Get3DZone(Float:xFloat:yFloat:zzone[], len//Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
        for(new 
0!= sizeof(gSAZones); i++ )
        {
                if(
>= gSAZones[i][SAZONE_AREA][0] && <= gSAZones[i][SAZONE_AREA][3] && >= gSAZones[i][SAZONE_AREA][1] && <= gSAZones[i][SAZONE_AREA][4] && >= gSAZones[i][SAZONE_AREA][2] && <= gSAZones[i][SAZONE_AREA][5])
                {
                    return 
format(zonelengSAZones[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.