Putting 2 variables in to one...
#1

Hi, I've been having a problem inserting my variables into functions. How can I make it so I can insert strings in to functions. For instance, ChangeVehicleColor(vehicleid,(string),(string)). Or is there a way I can convert the strings in to integers? Please help me out guys.
Reply
#2

Quote:
Originally Posted by nckspec
Hi, I've been having a problem inserting my variables into functions. How can I make it so I can insert strings in to functions. For instance, ChangeVehicleColor(vehicleid,(string),(string)). Or is there a way I can convert the strings in to integers? Please help me out guys.
for inserting string use %s and for inserting integer use %i
Reply
#3

https://sampwiki.blast.hk/wiki/Strval
Reply
#4

Thank you guys for your help, I tried it out and it worked!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)