04-24-2008, 09:54 AM
Quote: format(string, sizeof(string), "%s(ID:%d) has joined the server.", pName,playerid);
okay, but if you add that then you have to change the string size from 47 to 52 so here:
public OnPlayerConnect(playerid){
new pName[24];
new string[52];
GetPlayerName(playerid, pName, 24
format(string, sizeof(string), "%s(ID:%d) has joined the server.", pName,playerid);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
and the pName variable is max_size is 24 not 30 and when using the max number you have to change sizeof(pName) to 24
also i added COLOR_GREEN in there because i already new that he defined it because in the first post he uses it in the message
"type /help for help"