Storing 2 data's?
#1

Hi guys.
Im having a situation here: i'm trying to store 2 data's in 1 SetTimerEx like this :


SetTimerEx("buyvehtime", 20000, false, "ii", playerid, TCarModel, c);

The "c" is defined on the command by this:
for(new c=0;c<MAX_VEHICLES;c++)
{
...
TCarModel is the model the player types in the command. It is a command to buy a car based on its id.

So the problem is when i forward both like this:


forward buyvehtime(playerid, TCarModel, c);

It only stores the first one wich is TCarModel and it doesnt take the "c" too. So when i come to the public:

public buyvehtime(playerid, TCarModel, c)
{
.....

It just doesnt store the c. It has the TCarModel value but c is set as 0 and it isnt 0. Can someone help me plz?
Reply


Messages In This Thread
Storing 2 data's? - by GunZsmd - 19.04.2016, 20:27
Re: Storing 2 data's? - by OmegaKiller72 - 19.04.2016, 21:07
Re: Storing 2 data's? - by CodeStyle175 - 19.04.2016, 21:22
Re: Storing 2 data's? - by GunZsmd - 19.04.2016, 21:32
Re: Storing 2 data's? - by AmigaBlizzard - 19.04.2016, 23:07
Re: Storing 2 data's? - by CodeStyle175 - 20.04.2016, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)