02.06.2012, 08:19
hey guys,
im trying to make this kinda stock with " and " but it doesnt works quite good...
can someone tell me whats wrong with this?
and this i use in another callback:
the problem is that i want it that i can use " and " for the MDrag things, but i dont know whats the problem here...
anyone sees the problem?

greets niels
im trying to make this kinda stock with " and " but it doesnt works quite good...
can someone tell me whats wrong with this?
pawn Код:
stock RespawnAtRace(vehicleid, race[])
{
if(race == "MDrag")
{
new Random = random(sizeof(RandomSpawnsMDrag));
SetVehiclePos(vehicleid, RandomSpawnsMDrag[Random][0], RandomSpawnsMDrag[Random][1], RandomSpawnsMDrag[Random][2]);
SetVehicleZAngle(vehicleid, RandomSpawnsMDrag[Random][3]);
}
else if(race == "MDrift")
{
new Random = random(sizeof(RandomSpawnsMDrift));
SetVehiclePos(vehicleid, RandomSpawnsMDrift[Random][0], RandomSpawnsMDrift[Random][1], RandomSpawnsMDrift[Random][2]);
SetVehicleZAngle(vehicleid, RandomSpawnsMDrift[Random][3]);
}
}
pawn Код:
RespawnAtRace(vehicleid, "MDrift");
// and another callback
RespawnAtRace(vehicleid, "MDrag");
anyone sees the problem?


greets niels