SA-MP Forums Archive
[SOLVED, Thanks guys] TextDraw / CheckPoint Indicator ?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED, Thanks guys] TextDraw / CheckPoint Indicator ?? (/showthread.php?tid=70938)



[SOLVED, Thanks guys] TextDraw / CheckPoint Indicator ?? - SakuraBloss - 28.03.2009

Hi guys again

I want to add in a Race Gamemode this TextDraw, but i dont know how.
How i can do it ??




Is a Checkpoint meter... i think.

Plz people show me with detail or an example. Plz Plz


Sorry my bad English.


Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - SakuraBloss - 29.03.2009


Someone know how i can do this, plz

Or is impossible ?


Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - illay - 29.03.2009

new point=11;
point != + 1 => 11;


Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - SakuraBloss - 29.03.2009

?? what is that ?

i dont to understand


Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - FUNExtreme - 29.03.2009

Make a variable that increases when you enter a racecheckpoint
Then use it with TextDrawSetString

This code is not meant to be working. It is just to show how it would have to be done. You wont learn by copy/pasting
pawn Код:
new Currentcp[MAX_PLAYERS];
new string[128];
OnPlayerEnterRaceCheckpoint(playerid)
{
    Currentcp[playerid] ++;
    format(string, sizeof(string), "%d/11", Currentcp[playerid]);
    TextDrawSetString(textdraw, string);
    return 1;
}



Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - SakuraBloss - 29.03.2009


Thanks FUNExtreme i go to see


Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - illay - 29.03.2009

Everyone,

Quote:
pawn Код:
new Currentcp[MAX_PLAYERS] = 0;
new string[128];
OnPlayerEnterRaceCheckpoint(playerid)
{
    Currentcp[playerid] ++;
    format(string, sizeof(string), "%d/11", Currentcp[playerid]);
    TextDrawSetString(textdraw, string);
    return 1;
}
-->
pawn Код:
new string[128];
new Currentcp[MAX_PLAYERS];
public OnPlayerEnterRaceCheckpoint(playerid)
{
    Currentcp[playerid]++>11; //But let him step up 11
    format(string, sizeof(string), "%d/11", Currentcp[playerid]);
    TextDrawSetString(textdraw, string);
    return 1;
}



Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - illay - 29.03.2009

SakuraBloss,

Sorry, I was not aware of so that you did not meet.


Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - SakuraBloss - 29.03.2009

Quote:
Originally Posted by illay
SakuraBloss,

Sorry, I was not aware of so that you did not meet.
OOPS! Sorry to, im not explain very well, what i want. (my bad English)




Re: [HELP][HOW] TextDraw / CheckPoint Indicator ?? New - illay - 29.03.2009

SakuraBloss,

I do not speak on behalf of faultlessly the sassenach