Error with compiling location script - 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: Error with compiling location script (
/showthread.php?tid=66090)
Error with compiling location script -
Robbin237 - 19.02.2009
Hi guys im using the a_zone.inc , but now im getting this error when i use this script:
pawn Код:
#include <a_samp>
#include <a_zones>
new Zone[MAX_ZONE_NAME];
new Location[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
for(new i = 0; i <MAX_PLAYERS; i++)
{
GetPlayer2DZone(i, Zone, MAX_ZONE_NAME);
Location[i] = Zone;
}
return 1;
}
This is the error i get:
pawn Код:
E:\_Spellen\bkp\filterscripts\testing.pwn(13) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Whats wrong?
Re: Error with compiling location script -
Robbin237 - 19.02.2009
Plz?
Re: Error with compiling location script -
mirkoiz - 19.02.2009
whats line 13?
and you didnt give any variables to the script .. like 2938.823, -blabla, blabla
Re: Error with compiling location script -
Finn - 19.02.2009
Use string functions.
Read WIKI and pawn-lang.pdf