24.05.2011, 01:37
I have this textdraw (under a loop), when it's executed then the game crashes.
This one is crashing as well.
Thanks to whoever helped me!
pawn Код:
// STATUS
if (GetPVarInt(i, "Work") > 0)
{
format(szString, 40, "Status:~w~ Work");
TextDrawSetString(TD_7[i], szString);
}
if (GetPVarInt(i, "Flight") == 1)
{
format(szString, 40, "~Status:~w~ On Route");
TextDrawSetString(TD_7[i], szString);
}
if (GetPVarInt(i, "Flight") == 0)
{
if (GetPVarInt(i, "Work") == 0)
{
if (IsAirVehicle(GetPlayerVehicleID(i)))
{
format(szString, 40, "Status:~w~ Flying");
TextDrawSetString(TD_7[i], szString);
}
else
{
format(szString, 40, "Status:~w~ None");
TextDrawSetString(TD_7[i], szString);
}
}
}
pawn Код:
// DEST
if (GetPVarInt(i, "Flight") > 0)
{
format(szString, 40, "DEST:~w~ %s", GetDestination(i));
}
else if (GetPVarInt(i, "Flight") == 0)
{
format(szString, 40, "DEST:~w~ %s", "None");
}
if (GetPVarInt(i, "Work") > 0)
{
format(szString, 40, "DEST:~w~ %s", GetDestination(i));
}
else if (GetPVarInt(i, "Work") == 0)
{
format(szString, 40, "DEST:~w~ %s", "None");
}
TextDrawSetString(TD_2[i], szString);
![Smiley](images/smilies/smile.png)