#1

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.
Reply
#2

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.
Reply
#3

Maybe things like:
pawn Код:
if(vehid == 411)
(Infernus) class = Sports Car
pawn Код:
TextDrawSetString,"lalala string ect.");
Reply
#4

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
Maybe things like:
pawn Код:
if(vehid == 411)
(Infernus) class = Sports Car
pawn Код:
TextDrawSetString,"lalala string ect.");
Isn't that what I just told you..?
Reply
#5

No?

Anyways I think I sorted It out.
Reply
#6

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
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)