20.11.2012, 19:35
hey, i got those errors
the lines are:
my stock in gtazones.inc:
thanks a lot for helpers !
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
PHP код:
56696: Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
56730: Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
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;
}