SA-MP Forums Archive
Problem with CallRemoteFunction - 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: Problem with CallRemoteFunction (/showthread.php?tid=140647)



Problem with CallRemoteFunction - Ben147 - 09.04.2010

That's my callremotefunction

In the .inc file


Код:
forward IsPlayerLockCall(playerid);
Код:
public B_Ban(playerid,reason[])
{
	if(IsPlayerConnected(playerid))
	{
	  CallRemoteFunction("IsPlayerLockCall","i",playerid);
	  return 1;
	}
	return 0;
}
and in the gamemode file

Код:
public IsPlayerLockCall(playerid)
{
	return (PlayerInfo[playerid][pLocked] = 1);
}
And simple it's not working!, where is the problem?


Re: Problem with CallRemoteFunction - Ben147 - 10.04.2010

someone?


Re: Problem with CallRemoteFunction - Ben147 - 10.04.2010

It's not lock the player account when im using the callremotefunction, i tried what you gave me it's still doesnt work


Re: Problem with CallRemoteFunction - Ben147 - 10.04.2010

Solved