21.04.2013, 03:03
(
Последний раз редактировалось lexurs; 21.04.2013 в 03:41.
)
I am trying to make a command so that a Bulldozer can be placed on a Flatbed.. I do this,
if(arr_Wrecking[i] == vehicleid)
{
for(new i=0; i<sizeof(arr_Wrecking); i++)
{
arr_Wrecking[i] = INVALID_VEHICLE_ID;
playerveh[i] = INVALID_VEHICLE_ID;
KillTimer(TimerAtach[i]);
DestroyObject(GetPVarInt(i, "WreckingGate"));
DeletePVar(i, "WreckingGate");
return 1;
}
..But then I start getting errors about "SendClientMessageEx", and it all started happening when I added this line in,
for(new i=0; i<sizeof(arr_Wrecking); i++) .. Without that line though, I start getting errors, "undefined symbol "i" many times. I am a very nooby scripter so please help ..
if(arr_Wrecking[i] == vehicleid)
{
for(new i=0; i<sizeof(arr_Wrecking); i++)
{
arr_Wrecking[i] = INVALID_VEHICLE_ID;
playerveh[i] = INVALID_VEHICLE_ID;
KillTimer(TimerAtach[i]);
DestroyObject(GetPVarInt(i, "WreckingGate"));
DeletePVar(i, "WreckingGate");
return 1;
}
..But then I start getting errors about "SendClientMessageEx", and it all started happening when I added this line in,
for(new i=0; i<sizeof(arr_Wrecking); i++) .. Without that line though, I start getting errors, "undefined symbol "i" many times. I am a very nooby scripter so please help ..