28.12.2011, 02:37
#include <streamer>
new Text:gMyText1;
...
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == Checkpoint[0]){
if(gTeam[playerid] == TEAM_GANG){
new string[50], i = 30;
while(i >= 0)
{
i--;
format(string, sizeof(string), "CP TIME: %d", i);
TextDrawFont(gMyText1, 1);
TextDrawAlignment(gMyText1, 2);
TextDrawSetShadow(gMyText1, 0);
TextDrawSetString(gMyText1, string);
gMyText1 = TextDrawCreate(280,435,string);
TextDrawShowForAll(gMyText1);
}
}
}
return 1;
}
It shows "CP TIME:" and then some random letter on top of another letter I think its a bit messy cant really read it off. Any solution why the CP TIME: doesnt go down from 30 seconds?
new Text:gMyText1;
...
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == Checkpoint[0]){
if(gTeam[playerid] == TEAM_GANG){
new string[50], i = 30;
while(i >= 0)
{
i--;
format(string, sizeof(string), "CP TIME: %d", i);
TextDrawFont(gMyText1, 1);
TextDrawAlignment(gMyText1, 2);
TextDrawSetShadow(gMyText1, 0);
TextDrawSetString(gMyText1, string);
gMyText1 = TextDrawCreate(280,435,string);
TextDrawShowForAll(gMyText1);
}
}
}
return 1;
}
It shows "CP TIME:" and then some random letter on top of another letter I think its a bit messy cant really read it off. Any solution why the CP TIME: doesnt go down from 30 seconds?