06.01.2011, 12:35
This code crashes the server, but it didnt crash before!!
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(VehicleInfo[vehicleid][Owned] == 1) {
new PlayerName[24];
GetPlayerName(playerid, PlayerName, 24);
if(strcmp(VehicleInfo[vehicleid][vOwner], PlayerName, true ) != 0 && ispassenger == 0) {
SendClientMessage(playerid, COLOR_LIGHTRED, LoadText(playerid, "NOT_OWN"));
SendClientMessage(playerid, COLOR_LIGHTRED, LoadText(playerid, "NOT_OWN2"));
ClearAnimations(playerid);
return 1;
}
}
return 1;
}