GetPlayerName help.
#2

You can't use '==' in strings, use strcmp.
PHP код:
    new pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNamesizeof(pName));
    if(!
strcmp(LandInfo[land][landOwner], pName))
    {
        
// player names matches.
        
    

and your LandOwner variable should be like that
PHP код:
LandOwner[MAX_PLAYER_NAME
Reply


Messages In This Thread
GetPlayerName help. - by Alpha000 - 26.11.2015, 07:07
Re: GetPlayerName help. - by iKarim - 26.11.2015, 07:32
Re: GetPlayerName help. - by Alpha000 - 26.11.2015, 07:47
Re: GetPlayerName help. - by MafiaOink - 26.11.2015, 07:51
Re: GetPlayerName help. - by Alpha000 - 26.11.2015, 07:57
Re: GetPlayerName help. - by iKarim - 26.11.2015, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)