Show Vehicle Name Problem
#5

I have now fixed it, I think the problem was the "+400" when it should have been "-400"

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;
}
Thanks for the help JeNkStAX
Reply


Messages In This Thread
Show Vehicle Name Problem - by Alec24 - 13.04.2009, 00:16
Re: Show Vehicle Name Problem - by ICECOLDKILLAK8 - 13.04.2009, 01:03
Re: Show Vehicle Name Problem - by Alec24 - 13.04.2009, 02:03
Re: Show Vehicle Name Problem - by ICECOLDKILLAK8 - 13.04.2009, 02:10
Re: Show Vehicle Name Problem - by Alec24 - 13.04.2009, 02:18

Forum Jump:


Users browsing this thread: 2 Guest(s)