SA-MP Forums Archive
Bug with player zones - 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: Bug with player zones (/showthread.php?tid=369116)



Bug with player zones - thefatshizms - 15.08.2012

Hello, i downloaded this include http://forum.sa-mp.com/showthread.ph...ighlight=zones to display where a player is when he comits a crime etc. I decided to test out before i go using it in all my /rob cmds etc

pawn Код:
format(string2, sizeof(string2), "Your wanted level has been increased to %i your zone : %s", WantedLevel[playerid], PlayerZone(playerid));
        SendClientMessage(playerid, COLOR_RED, string2);
it displays Your wanted level has been increased to 4 your zone : at i was like wtf? im not at "at"
so maybe its with the stock?
pawn Код:
stock PlayerZone(playerid)
{
    new zone[28];
    GetPlayer2DZone(playerid, zone, 28);
    return 1;
}



Re: Bug with player zones - SaYrOn - 15.08.2012

Post that GetPlayer2DZone


AW: Bug with player zones - Kwashiorkor - 15.08.2012

Код:
stock PlayerZone(playerid)
{
    new zone[28];
    GetPlayer2DZone(playerid, zone, 28);
    return zone;//I think it should return a string which contains the name of a zone
}