not work Text Draw!
#7

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    #pragma unused reason
    SetPlayerScore (killerid, GetPlayerScore (killerid) + 1);
    UpdateKillsLevel(killerid);
    return 1;
}

UpdateKillsLevel(playerid)
{
    new kills = GetPlayerScore(playerid);
    if(kills % 50 == 0) SetPlayerScore(playerid,GetPlayerScore(playerid) + 1);
    new level = GetPlayerScore(playerid), string[32];
    format(string, sizeof(string), "Level: %d\nKills: %d/%d", level, kills, level * 50);
    PlayerTextDrawSetString(playerid, KillsLevel[playerid], string);
    PlayerTextDrawShow( playerid , KillsLevel[playerid] );
}
remember to update it is necessary to kill someone..!
Reply


Messages In This Thread
not work Text Draw! - by proSeryoga - 13.03.2013, 03:57
Re: not work Text Draw! - by Pottus - 13.03.2013, 04:15
Re: not work Text Draw! - by proSeryoga - 13.03.2013, 04:22
Re: not work Text Draw! - by Pottus - 13.03.2013, 04:33
Re: not work Text Draw! - by proSeryoga - 13.03.2013, 04:38
Re: not work Text Draw! - by proSeryoga - 13.03.2013, 05:19
Respuesta: not work Text Draw! - by Parka - 13.03.2013, 06:32
Re: not work Text Draw! - by proSeryoga - 13.03.2013, 06:39
Respuesta: not work Text Draw! - by Parka - 13.03.2013, 06:42
Re: Respuesta: not work Text Draw! - by proSeryoga - 13.03.2013, 06:47

Forum Jump:


Users browsing this thread: 1 Guest(s)