31.07.2018, 14:43
Quote:
params is a string (You can determine that by the two square brackets after the parameter, "params[]")
So how you use it, you expect it to work as an integer (index in the array). To do that, you need to convert the string to an integer. Try using strval(params) instead of params only at the last variable. This makes it be an integer. Remember that strval() returns 0 for text as well. https://sampwiki.blast.hk/wiki/Strval PHP код:
Your current method won't hold up. |
PHP код:
public OnPlayerConnect(playerid)
{
if(BannedFromServer[playerid])
{
SendClientMessage(playerid, -1, " You are banned ! ");
return Kick(playerid);
}