05.12.2012, 14:29
theres a little mistake here
but its not a big problem it will work anyways, thanks nice tut!
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