25.09.2012, 12:44
Try this
You just formatted the string, didn't output it.
And thats why the message didn't come.
Edit:Aww I'm late
Mobile scripting is too slow..
pawn Код:
if (strcmp("/myinfo", cmdtext, true, 10) == 0)
{
new string[256];
new string2[256];
SendClientMessage(playerid,COLOR_GREEN,"============================== My User Information ===========================================");
format(string, sizeof(string),"[Name]%s(%d): Level[%d] - Bank[%d] - Money[%d] - Exp[%d] ",PlayerName(playerid),playerid,PlayerInfo[playerid][Level],PlayerInfo[playerid][pBankAccount],PlayerInfo[playerid][pCash],PlayerInfo[playerid][Exp]);
format(string2, sizeof(string2),"Kills[%d] - Deaths[%d] - Adminlevel[%d] ",PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, string);
SendClientMessage(playerid,COLOR_GREEN,"==============================================================================================");
}
And thats why the message didn't come.
Edit:Aww I'm late
Mobile scripting is too slow..