Message Not Work
#5

PHP код:
public OnPlayerConnect(playerid

    new 
connected[256],plname[MAX_PLAYER_NAME],plip[126],Country[126],City[126]; 
    
GetPlayerCountry(playeridCountrysizeof(Country)); 
    
GetPlayerCity(playerid,Citysizeof(City)); 
    
GetPlayerName(playeridplnamesizeof(plname)); 
    
GetPlayerIp(playeridplipsizeof(plip)); 
    
format(connected,sizeof(connected),"{00ff00}[Join]:{0000ff}%s {ff0000}Has Joined The Server{00ffff}[{ffffff}IP:{ffff00}%s{00ffff}]{00ffff}[{ffffff}Contry:{ffff00}%s{00ffff}]{00ffff}[{fffff00}City: %s{00ffff}]",plname,plip,Country,City); 
    
SendClientMessageToAll(0xFF0000FF,connected); 
    return 
1

Why did you have [MAX_PLAYER_NAME] in "plip[126],Country[126],City[126]; "?
It should be string value inthere..
Reply


Messages In This Thread
Message Not Work - by HoussamMaroc - 11.06.2017, 18:18
Re: Message Not Work - by Whatname - 11.06.2017, 18:23
Re: Message Not Work - by HoussamMaroc - 11.06.2017, 18:31
Re: Message Not Work - by HoussamMaroc - 11.06.2017, 18:33
Re: Message Not Work - by kalanerik99 - 11.06.2017, 18:35
Re: Message Not Work - by HoussamMaroc - 11.06.2017, 18:37
Re: Message Not Work - by kalanerik99 - 11.06.2017, 18:39
Re: Message Not Work - by HoussamMaroc - 11.06.2017, 18:41
Re: Message Not Work - by Whatname - 11.06.2017, 18:42
Re: Message Not Work - by HoussamMaroc - 11.06.2017, 18:46

Forum Jump:


Users browsing this thread: 2 Guest(s)