GangZoneCreate invalid function or declaration
#1

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);
Reply
#2

The function needs to know when you want it to be called. Put the GangZoneCreate function inside a callback.
Reply
#3

Ah, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)