code help +rep
#1

Код HTML:
public OnPlayerConnect(playerid)
{
    new pmess[256],IP[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerIp(playerid,IP,sizeof(IP));
    printf("%s has joined the server. Country: %s | IP Address: %s",name, GetPlayerCountryName(playerid),IP);
    format(pmess,sizeof(pmess),"COL_RED%s"COL_WHITE" has joined the server from "COL_RED"%s.", name, GetPlayerCountryName(playerid));
    SendClientMessageToAll(-1, pmess);
    GameTextForPlayer(playerid, "~g~Welcome ~r~to ~p~Samp~y~Drifting ~b~Community", 5001, 6);
	return 1;
}
Код HTML:
See its showing Col_RED
Reply
#2

pawn Код:
format(pmess, sizeof(pmess), ""COL_RED"%s"COL_WHITE" has joined the server from "COL_RED"%s.", name, GetPlayerCountryName(playerid));
Reply
#3

thanx rep added!
Reply
#4

Still its showing COL_RED
Reply
#5

try:
pawn Код:
format(pmess,sizeof(pmess),"{FF0000}%s {FFFFFF}has joined the server from {FF0000}%s.", name, GetPlayerCountryName(playerid));
Reply
#6

Or you could just add this on the top of the script.

pawn Код:
#if !defined COL_RED
 #define COL_RED "{FF0000}"
#endif
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)