an problem
#1

hey,i dont really know how to describe it but theres my code

pawn Код:
{
        new pName[MAX_PLAYER_NAME];
        new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), " %s Joined the server. (Joined)", pName);
    SendClientMessageToAll(0x9ACD32AA, string);
        }
and the problem is,it only shows %s Joined the server. (Joined
and nothing more,how to make that the lines can be longer?
Reply
#2

It may help if string is larger.

pawn Код:
new Pname[24];
new string[85];
GetPlayerName(playerid, Pname, 24);
format(string, sizeof(string), "%s Joined the server. (Joined)", Pname);
SendClientMessageToAll(0x9ACD32AA, string);
Reply
#3

oh thanks dude.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)