GetPlayerZone - 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: GetPlayerZone (
/showthread.php?tid=65529)
GetPlayerZone -
SuperS0nic - 13.02.2009
Код:
public GetPlayerZone(playerid)
{
new line[22];
format(line,22,"p%dzone",playerid);
new zoneid = strval(PropertyGet(line));
return zoneid;
}
Gives me 1 error, why?
Quote:
C:\DOCUME~1\17FE8~1.MRK\SKRIVB~1\serv\pawno\COD.pw n(365) : error 025: function heading differs from prototype
|
Re: GetPlayerZone -
ICECOLDKILLAK8 - 13.02.2009
Because the name of it is different from the forward, if it says
pawn Код:
forward GetPlayerZone(zoneid)
then this should say
pawn Код:
public GetPlayerZone(zoneid)
Re: GetPlayerZone -
SuperS0nic - 13.02.2009
Thank you.