stock
#3

Код:
stock PlayerIDs(string); // This value is not a string, it's integer 
stock PlayerIDs(const string[]); // This value is a string
I think you wanted to know that is given name player is connected or not, for that use this

Код:
stock bool:IsPlayerConnected(const string[])
{
    foreach(new i: Player)
    {
        new name[50];
        GetPlayerName(playerid, name[], sizeof name);
        if(!strcmp(name, string)) return true;
    }
    return false;
}
Reply


Messages In This Thread
stock - by EmpireSk - 25.03.2019, 14:44
Re: stock - by SiaReyes - 25.03.2019, 14:53
Re: stock - by iorp - 25.03.2019, 15:13
Re: stock - by EmpireSk - 25.03.2019, 16:11
Re: stock - by EmpireSk - 25.03.2019, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)