19.04.2016, 20:27
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?
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?