29.12.2015, 12:20
So Probably you were Right. I tried it like this and its compiled:
=======================
Lazy to create another thread for other Errors, so have a look
Error:
PHP код:
forward Float:PlayerPosition(playerid, Float:X, Float:Y, Float:Z);
stock Float:PlayerPosition(playerid, Float:X, Float:Y, Float:Z)
{
new Float:XP,Float:YP,Float:ZP;
GetPlayerPos(playerid,XP,YP,ZP);
return (XP - X) + (YP - Y) + (ZP - Z);
}
Lazy to create another thread for other Errors, so have a look
Error:
Код:
error 076: syntax error in the expression, or invalid function call
PHP код:
new Str[300];
format(Str, sizeof(Str), "%d/%d", ClosestDis, GetPlayersOnServer); //Error in GetPlayersOnServer Possibily
TextDrawSetString(Textdraw15, Str);
PHP код:
stock GetPlayersOnServer()
{
new count;
for(new x=0; x< MAX_PLAYERS; x++)
{
if(IsPlayerConnected(x)))
{
count++;
}
}
return count;
}