09.12.2010, 17:46
I edited the "/mdc" cmd to show the age and the phone number. At the compile, it doesn't show any error but in the game it doesn't work.
I took the eXtr1ke's include for showing the ChatColor and it doesn't work. I added #include <ChatColor> and i edited the realchat.
Код:
format(string, sizeof(string), "Varsta : %s", PlayerInfo[giveplayerid][pAge]); SendClientMessage(playerid, COLOR_GRAD2,string); format(string, sizeof(string), "Phone : %s", PlayerInfo[giveplayerid][pPnumber]); SendClientMessage(playerid, COLOR_GRAD2,string) }
Код:
if (realchat) { if(gPlayerLogged[playerid] == 0) { return 0; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s", text); ChatColor(20.0, playerid,string); return 0; }