/stats - Need help with that
#4

Yea, riight.
Now.
pawn Код:
public Andmed(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new string[128];
        new raha =  GetPlayerMoney(targetid);
        new hoiatusi = PlayerInfo[playerid][pHoiatusi]; //warns
        new kiitusi = PlayerInfo[targetid][pKiitusi]; // opposite of warns :D
        new nimi[MAX_PLAYER_NAME];
        GetPlayerName(targetid, nimi, sizeof(nimi));
        SendClientMessage(playerid, COLOR_WHITE,"____________");
        format(string, sizeof(string),"*** %s ***",nimi);
        SendClientMessage(playerid, COLOR_WHITE,string);
        format(string, sizeof(string), "Raha:[$%d]",raha);
        SendClientMessage(playerid, COLOR_WHITE,string);
        format(string, sizeof(string), "Hoiatusi:[%d/5] | Kiitusi:[%d]", hoiatusi, kiitusi);
        SendClientMessage(playerid, COLOR_WHITE,string);
        SendClientMessage(playerid, COLOR_WHITE,"____________");
    }
}
will give this:
Код:
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
on these lines:
pawn Код:
new hoiatusi = PlayerInfo[playerid][pHoiatusi]; //warns
        new kiitusi = PlayerInfo[targetid][pKiitusi]; // opposite of warns :D
EDIT: nvm, i loaded Andmed() before new PlayerInfo[MAX_PLAYERS][pInfo];
Reply


Messages In This Thread
/stats - Need help with that - by vent - 22.11.2011, 13:13
Re: /stats - Need help with that - by Pinguinn - 22.11.2011, 13:16
Re: /stats - Need help with that - by Kostas' - 22.11.2011, 13:17
Re: /stats - Need help with that - by vent - 22.11.2011, 13:21
Re: /stats - Need help with that - by Hoborific - 22.11.2011, 13:23
Re: /stats - Need help with that - by Kostas' - 22.11.2011, 13:23
Re: /stats - Need help with that - by vent - 22.11.2011, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)