GetPlayerZone
#1

Код:
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

Reply
#2

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)
Reply
#3

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)