13.04.2009, 02:03
Thanks for the reply. It compiles with no errors but it will not display the vehicle name.
I have also modified it to this:
Anybody have any ideas on how to fix this, Thanks.
I have also modified it to this:
pawn Код:
public UpdateText(playerid)
{
for(new i=0; i<SLOTS;i++)
if(IsPlayerConnected(i))
{
new NEWTEXT[256];
if(IsPlayerInAnyVehicle(playerid))
{
format(NEWTEXT,256, "Location: %s Vehicle: %s", GetPlayerArea(i),VehNames[GetVehicleModel(GetPlayerVehicleID(playerid))+400]);
TextDrawSetString(Location[i], NEWTEXT);
}else{
format(NEWTEXT,256, "Location: %s", GetPlayerArea(i));
TextDrawSetString(Location[i], NEWTEXT);
}
}
return 1;
}