Problem [REP ++]
#1

I am waaaay too tierd to even try to figure out myself. What is it wrong in here:
pawn Код:
//Under OnPlayerConnect
    SetTimerEx("StatsTimer",1000,1,"i",playerid);
//Somewhere.
forward StatsTimer(playerid);
public StatsTimer(playerid)
{
    new string[128],Float:pH;
    format(string,sizeof(string),"Kills: %i || Deaths: %i || Ratio: %f || Exp: %i || Gun: %s || Kills to top: %i",PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],(PlayerInfo[playerid][pKills])/(PlayerInfo[playerid][pDeaths])
    /*                                          DO NOT TOUCH                                                    */,PlayerInfo[playerid][pExp],LevelToName(playerid),(hValue)-(PlayerInfo[playerid][pwSkills]));
    printf(string);
    TextDrawSetString(textdraw4,string);
    GetPlayerHealth(playerid,pH);
    SetPlayerHealth(playerid,pH+1);
    return 1;
}
Timer is working. I've tested it with putting printf("TIMER TEST"); and indeed it worked. But when tried to do printf(string); it showed nothing. Also in the server TextDraw's string is not updating. Thanks to all helpers [REPUTATION ++]
Reply


Messages In This Thread
Problem [REP ++] - by sleepysnowflake - 31.10.2011, 21:48
Re: Problem [REP ++] - by Kingunit - 31.10.2011, 21:52
Re: Problem [REP ++] - by sleepysnowflake - 31.10.2011, 22:01
Re: Problem [REP ++] - by Unte99 - 31.10.2011, 22:10
Re: Problem [REP ++] - by sleepysnowflake - 31.10.2011, 22:12
Re: Problem [REP ++] - by Unte99 - 31.10.2011, 22:14
Re: Problem [REP ++] - by sleepysnowflake - 31.10.2011, 22:19
Re: Problem [REP ++] - by Unte99 - 31.10.2011, 22:36
Re: Problem [REP ++] - by sleepysnowflake - 31.10.2011, 22:58
Re: Problem [REP ++] - by Unte99 - 01.11.2011, 00:05

Forum Jump:


Users browsing this thread: 2 Guest(s)