13.04.2009, 02:18
I have now fixed it, I think the problem was the "+400" when it should have been "-400"
This works:
Thanks for the help JeNkStAX
This works:
pawn Код:
public UpdateText(playerid)
{
for(new i=0; i<SLOTS;i++)
if(IsPlayerConnected(i))
{
new NEWTEXT[256];
if(IsPlayerInAnyVehicle(playerid))
{
new VID = GetPlayerVehicleID(playerid);
format(NEWTEXT,256, "Location: %s Vehicle: %s", GetPlayerArea(i),VehNames[GetVehicleModel(VID)-400]);
TextDrawSetString(Location[i], NEWTEXT);
}else{
format(NEWTEXT,256, "Location: %s", GetPlayerArea(i));
TextDrawSetString(Location[i], NEWTEXT);
}
}
return 1;
}