/myinfo not effect IG
#6

pawn Код:
if (strcmp("/myinfo", cmdtext, true, 10) == 0)
    {
        new string[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]);
        SendClientMessage(playerid, -1, string);
        format(string, sizeof(string),"Kills[%d] - Deaths[%d] - Adminlevel[%d] ",PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],PlayerInfo[playerid][pAdmin]);
        SendClientMessage(playerid, -1, string);
        SendClientMessage(playerid,COLOR_GREEN,"==============================================================================================");
        }
Your mistake:
You ONLY formatted the strings but never sent it to the player. (Keep in mind "format" is only used for manipulating strings, not for sending them..)
Reply


Messages In This Thread
/myinfo not effect IG - by BlueGames - 25.09.2012, 12:28
Re: /myinfo not effect IG - by Socan - 25.09.2012, 12:33
Re: /myinfo not effect IG - by Socan - 25.09.2012, 12:36
Re: /myinfo not effect IG - by BlueGames - 25.09.2012, 12:41
Re: /myinfo not effect IG - by Socan - 25.09.2012, 12:42
Re: /myinfo not effect IG - by iPLEOMAX - 25.09.2012, 12:42
Re: /myinfo not effect IG - by Lordzy - 25.09.2012, 12:44
Re: /myinfo not effect IG - by Socan - 25.09.2012, 12:48
Re: /myinfo not effect IG - by BlueGames - 25.09.2012, 12:49
Re: /myinfo not effect IG - by BlueGames - 25.09.2012, 12:52

Forum Jump:


Users browsing this thread: 2 Guest(s)