Default Parameters (Colour issue)
#5

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
he means with the unformat function

pawn Код:
if(unformat(params, "k<vehicles>D(default here)D(default here)", sCar, colour1, colour2))

//example for defaults like you asked
if(unformat(params, "k<vehicles>D(86)D(-1)", sCar, colour1, colour2))
if (colour2 == -1) colour2 = colour1;
Thanks, tried it but the issue is, that the command does not spawn the car unless both Variables are input, I have a feeling it is because of the -1, trying it now
Reply


Messages In This Thread
Default Parameters (Colour issue) - by vIBIENNYx - 24.05.2012, 00:09
Re: Default Parameters (Colour issue) - by [ABK]Antonio - 24.05.2012, 00:10
Re: Default Parameters (Colour issue) - by vIBIENNYx - 24.05.2012, 00:14
Re: Default Parameters (Colour issue) - by Jonny5 - 24.05.2012, 00:18
Re: Default Parameters (Colour issue) - by vIBIENNYx - 24.05.2012, 00:31
Re: Default Parameters (Colour issue) - by Jonny5 - 24.05.2012, 00:35
Re: Default Parameters (Colour issue) - by vIBIENNYx - 24.05.2012, 00:37
Re: Default Parameters (Colour issue) - by Jonny5 - 24.05.2012, 00:40

Forum Jump:


Users browsing this thread: 1 Guest(s)