Problem with a variable
#1

I`m currently trying to do a respawn command, to respawn all the vehicles. The problem is that I get this error: error 021: symbol already defined: "i"

code:
Код:
dcmd_respawncars(playerid, params[])
{
	#pragma unused params
	for(new i=0, i <= MAX_VEHICLES, i++) SetVehicleToRespawn(i); //error line
	return 1;
}
I`ve tried to delete the "new" and use only "for(i=0 ..." but if I do that way I get two errors, on the same line, that "i" it`s not defined. Some help please?
Reply


Messages In This Thread
Problem with a variable - by sobolanux - 01.05.2010, 09:30
Re: Problem with a variable - by maij - 01.05.2010, 09:32
Re: Problem with a variable - by sobolanux - 01.05.2010, 09:38
Re: Problem with a variable - by maij - 01.05.2010, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)