Quote:
Originally Posted by Plovix
Try:
PHP код:
if(IsPlayerInAnyVehicle(playerid))
{
new str[128];
if(VehicleWindows[playerid] == 0)
{
format(str, sizeof(str), "[Windows Open]: %s", text);
SendClientMessage(playerid, COLOR, str);
}
else if(VehicleWindows[playerid] == 1)
{
format(str, sizeof(str), "[Window shout]: %s", text);
SendClientMessage(playerid, COLOR, str);
}
}
return 1;
}
|
Still crashes with this code , Compiles fine when i remove.