Textdraw screen bug
#5

Quote:
Originally Posted by sGarfield
Посмотреть сообщение

Post the "OnPlayerStateChange".
I have nothing related on OnPlayerStateChange for that textdraw, but ok.
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if (newstate == PLAYER_STATE_DRIVER)
    {
        for (new i=1;i<OrgsCount+1;i++)
        {
           for (new a=0;a<MAX_ORG_VEHICLES;a++)
           {
                new vehicleid = GetPlayerVehicleID(playerid);
                if (IsVehicleConnected(vehicleid))
                {
                    if (vehicleid == Organization[i][Vehicles][a] && PlayerOrg[playerid] != i)
                    {
                            if (DoesOrgExist(GetOrgName(i)))
                            {
                            new string[100];
                            format(string,sizeof(string),"This vehicle belongs to %s. You are not authorized to use it", GetOrgName(i));
                            SendClientMessage(playerid, COLOR_RED, string);
                            RemovePlayerFromVehicle(playerid);
                            }
                        }
                }
           }
        }
    }

    return 1;
}
Reply


Messages In This Thread
Textdraw screen bug - by cruising - 09.01.2012, 09:34
Re: Textdraw screen bug - by sGarfield - 09.01.2012, 09:48
Re: Textdraw screen bug - by cruising - 09.01.2012, 09:53
Re: Textdraw screen bug - by sGarfield - 09.01.2012, 09:58
Re: Textdraw screen bug - by cruising - 09.01.2012, 10:02
Re: Textdraw screen bug - by sGarfield - 09.01.2012, 10:07
Re: Textdraw screen bug - by cruising - 09.01.2012, 10:14
Re: Textdraw screen bug - by sGarfield - 09.01.2012, 10:20
Re: Textdraw screen bug - by cruising - 09.01.2012, 10:32

Forum Jump:


Users browsing this thread: 1 Guest(s)