User name to real name
#10

Okay, thanks everybody (and also Swyft, he just wants to help )

So this is the code I have now, but then, the string only changes to 'Aegide', even if I log in with 'Elietje28', 'vandenboerseppe',...

Код:
public OnPlayerConnect(playerid)
{

new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    
if(strcmp(name,"Aegidje",true))
{
name="Aegide";
}

else if(strcmp(name,"Elietje28",true))
{
name="Elias";
}

else if(strcmp(name,"vandenboerseppe",true))
{
name="Seppe";
}

else if(strcmp(name,"SmacksCharlie",true))
{
name="Karel";
}

else if(strcmp(name,"stabar",true))
{
name="Steven";
}

else if(strcmp(name,"Supertoby28",true))
{
name="Aдron";
}

    format(string, sizeof(string), "%s is ingelogd.", name);
    SendClientMessageToAll(COLOR_GREEN, string);
 	
return 1;
}
Reply


Messages In This Thread
User name to real name - by Elietje28 - 23.06.2013, 16:43
Re: User name to real name - by NoahF - 23.06.2013, 16:59
Re: User name to real name - by Elietje28 - 23.06.2013, 17:00
Re: User name to real name - by Swyft™ - 23.06.2013, 17:32
Re: User name to real name - by Elietje28 - 23.06.2013, 17:37
Re: User name to real name - by Swyft™ - 23.06.2013, 17:58
Re: User name to real name - by Basssiiie - 23.06.2013, 18:44
Re: User name to real name - by Swyft™ - 23.06.2013, 20:24
Re: User name to real name - by xxSwissxx - 24.06.2013, 05:58
Re: User name to real name - by Elietje28 - 24.06.2013, 13:41

Forum Jump:


Users browsing this thread: 2 Guest(s)