[Tutorial] How To Make Score System With Timers
#18

theres a little mistake here
pawn Код:
forward AddScore1(playerid);
public AddScore1(playerid)
{
    SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
    new string[200];//here
    format(string, sizeof(string, "~g~U're now level 1 Congratz");//here
    GameTextForPlayer(playerid, string, 1000, 0);//here
    KillTimer(ScoreTimer1[playerid]);
    if(GetPlayerScore(playerid) < 2)
    {
               KillTimer(ScoreTimer1[playerid]);
    }
    return 1;
}
pawn Код:
format(string, sizeof(string, "~g~U're now level 1 Congratz");//your not using any value here like %i or %s so you
//you dont need to format it so you can simply add this?
GameTextForPlayer(playerid, "~g~your now level 1 Gratz", 1000, 0);//easily without adding string it would take more memory cause of its size
but its not a big problem it will work anyways, thanks nice tut!
Reply


Messages In This Thread
How To Make Score System With Timers - by -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 06.01.2011, 22:51
AW: How To Make Score System With Timers - by NuggaN_ - 08.01.2011, 05:39
Re: How To Make Score System With Timers - by Souvlaki - 08.01.2011, 05:43
Re: How To Make Score System With Timers - by admantis - 08.01.2011, 05:45
Re: How To Make Score System With Timers - by Lorenc_ - 08.01.2011, 06:03
AW: How To Make Score System With Timers - by NuggaN_ - 08.01.2011, 06:21
Re: How To Make Score System With Timers - by admantis - 08.01.2011, 06:23
Re: How To Make Score System With Timers - by Lorenc_ - 08.01.2011, 06:40
Re: AW: How To Make Score System With Timers - by Tee - 08.01.2011, 06:41
Re: How To Make Score System With Timers - by ToPhrESH - 08.01.2011, 06:47
Re: How To Make Score System With Timers - by -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 08.01.2011, 06:51
Re: AW: How To Make Score System With Timers - by -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 08.01.2011, 06:55
Re: How To Make Score System With Timers - by Stefand - 13.11.2011, 09:54
Re: How To Make Score System With Timers - by Kostas' - 13.11.2011, 10:10
Re: How To Make Score System With Timers - by Janek17 - 21.12.2011, 18:52
Re: How To Make Score System With Timers - by LaGrande - 29.04.2012, 21:18
Re: How To Make Score System With Timers - by ReD_HunTeR - 01.12.2012, 19:27
Re: How To Make Score System With Timers - by xMCx - 05.12.2012, 14:29
Re: How To Make Score System With Timers - by --LooD-- - 05.12.2012, 20:58
Re: How To Make Score System With Timers - by UserName31 - 01.02.2014, 14:58

Forum Jump:


Users browsing this thread: 4 Guest(s)