17.05.2011, 15:33
ok, i dont really get why this locks up the server but, sometimes it works perfectly, sometimes it just locks up the server..
Note: no, it hasn't been over 24 hours.
Note: id = GetPlayerVehicleID(playerid) - Yes, the player is in a vehicle
Note: v = the vehicle that the missile hit.
pawn Код:
SendClientMessageFormatted(playerid, RED, "Player: %s(%d) Hit vehicleid: %d With Objectid: %d - Missileid: %d", Playername(playerid), playerid, v, objectid, missileid);
printf("Player: %s(%d) Hit vehicleid: %d With Objectid: %d - Missileid: %d", Playername(playerid), playerid, v, objectid, missileid);
Wait(250);
DestroyDynamicObject(Vehicle_Smoke[id][0]);
Vehicle_Firing_Missile[id] = 0;
KillTimer(Update_Missile_Timer[playerid]);
KillTimer(Missile_Explode_Timer[playerid]);
SendClientMessageFormatted(playerid, RED, "2Player: %s(%d) Hit vehicleid: %d With Objectid: %d - Missileid: %d", Playername(playerid), playerid, v, objectid, missileid);
pawn Код:
stock Wait(time)
{
new stamp = tickcount();
while (tickcount() - stamp < time){}
return 1;
}
Note: id = GetPlayerVehicleID(playerid) - Yes, the player is in a vehicle
Note: v = the vehicle that the missile hit.