Idea - 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: Idea (
/showthread.php?tid=188483)
Idea -
WillyP - 07.11.2010
Hey, I have an idea with variables. But I don't have a clue in what way to set it out.
So say if you entered a Infernus; a textdraw would appear with Infernus - Sports Car written on it, but for different vehicles, different textdraw strings. I already got a small idea in my head but I'd like to know your ideas/workarounds.
Re: Idea -
playbox12 - 07.11.2010
Well I don't get your point. I only can think of one way..
Just an if statement that checks what vehicle model it is, and then just simply display the textdraw.
Also I don't see what you mean with variables.
Re: Idea -
WillyP - 07.11.2010
Maybe things like:
(Infernus) class = Sports Car
pawn Код:
TextDrawSetString,"lalala string ect.");
Re: Idea -
playbox12 - 07.11.2010
Quote:
Originally Posted by [FU]Victious
Maybe things like: (Infernus) class = Sports Car
pawn Код:
TextDrawSetString,"lalala string ect.");
|
Isn't that what I just told you..?
Re: Idea -
WillyP - 07.11.2010
No?
Anyways I think I sorted It out.
Re: Idea -
legodude - 07.11.2010
you mean an array:
Код:
new vehstrings[][]
{
{441,''infernus. sportscar''}
}
textdrawsetstring(txd,vehstrings[441][0])
i am not too bright atm (lil drunk) so it contaiiins lots of errors. ut this is the way ill do it
Re: Idea -
WillyP - 07.11.2010
Quote:
Originally Posted by legodude
you mean an array:
Код:
new vehstrings[][]
{
{441,''infernus. sportscar''}
}
textdrawsetstring(txd,vehstrings[441][0])
i am not too bright atm (lil drunk) so it contaiiins lots of errors. ut this is the way ill do it
|
Yeah lol thats what I meant :P