24.06.2013, 13:41
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',...
)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;
}

