SA-MP Forums Archive
[HELP]Errors - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Errors (/showthread.php?tid=195444)



[HELP]Errors - SoaD123 - 02.12.2010

Hi.Today i go to do house system like Ravens house system.Here is code what i get:
EVo danas sam radio house sistem slican ravensu i dobio sam ove errore:
Код:
C:\Documents and Settings\Dolenac\Desktop\Weber Role Play DM Zadnji Mod1\gamemodes\gtar.pwn(930) : error 017: undefined symbol "SANZONE_AREA"
C:\Documents and Settings\Dolenac\Desktop\Weber Role Play DM Zadnji Mod1\gamemodes\gtar.pwn(930) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dolenac\Desktop\Weber Role Play DM Zadnji Mod1\gamemodes\gtar.pwn(930) : warning 215: expression has no effect
C:\Documents and Settings\Dolenac\Desktop\Weber Role Play DM Zadnji Mod1\gamemodes\gtar.pwn(930) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Dolenac\Desktop\Weber Role Play DM Zadnji Mod1\gamemodes\gtar.pwn(930) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
ERROR line:
Код:
stock GetPlayer3DZone(playerid, zone[], len)
{
	new Float:x33, Float:y33, Float:z33;
	GetPlayerPos(playerid, x33, y33, z33);
 	for(new i = 0; i != sizeof(gSAZones); i++ )
 	{
Error is here----->if(x33 >= gSAZones[i][SANZONE_AREA][0] && x33 <= gSAZones[i][SANZONE_AREA][3] && y33 >= gSANZones[i][SAZONE_AREA][1] && y33 <= gSANZones[i][SAZONE_AREA][4] && z33 >= gSAZones[i][SANZONE_AREA][2] && z33 <= gSANZones[i][SAZONE_AREA][5])
		{
		    return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
		}
	}
	return 0;
}
Pls help....


Re: [HELP]Errors - WillyP - 02.12.2010

You'll need playerpos rather than is pos in range of a pos.


Re: [HELP]Errors - SoaD123 - 02.12.2010

how to do this?