GangZoneCreate invalid function or declaration - 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: GangZoneCreate invalid function or declaration (
/showthread.php?tid=553599)
GangZoneCreate invalid function or declaration -
CalvinC - 30.12.2014
Tried creating GangZones on the map, but it gives error 010: invalid function or declaration on the second line.
pawn Код:
new southsidegantongangsters, theblackwolfmafia;
southsidegantongangsters = GangZoneCreate(2223.6360, -1709.2278, 2404.0181, -1823.9686); // error
theblackwolfmafia = GangZoneCreate(1464.1876, -1309.5486, 1592.6082, -1430.6052);
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, southsidegantongangsters, 0xD1180096);
GangZoneShowForPlayer(playerid, theblackwolfmafia, 0x00000096);
Re: GangZoneCreate invalid function or declaration -
Larceny - 30.12.2014
The function needs to know when you want it to be called. Put the GangZoneCreate function inside a callback.
Re: GangZoneCreate invalid function or declaration -
CalvinC - 30.12.2014
Ah, thanks.