Hello There, Guest! Login or Register


OnInvionAskForHelp;...
#5
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"
Reply


Messages In This Thread
OnInvionAskForHelp;... - by InVion - 04-23-2008, 11:04 AM
Re: OnInvionAskForHelp;... - by Smoke - 04-23-2008, 02:18 PM
Re: OnInvionAskForHelp;... - by AzTeC - 04-23-2008, 02:44 PM
Re: OnInvionAskForHelp;... - by Motorola - 04-23-2008, 11:58 PM
Re: OnInvionAskForHelp;... - by Smoke - 04-24-2008, 09:54 AM