text draw now showing in vehicle
#1

this is my code
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
        if(
newkeys == KEY_FIRE)
       {
            new 
vehicleid GetVehicleModel(playerid);
            if(
GetVehicleModel(vehicleid) == 448)
            {
                
TextDrawShowForPlayer(playerid,Textdraw0);
                
TextDrawShowForPlayer(playerid,Textdraw1);
                
TextDrawShowForPlayer(playerid,Textdraw2);
                
TextDrawShowForPlayer(playerid,Textdraw3);
                
TextDrawShowForPlayer(playerid,Textdraw4);
                
TextDrawShowForPlayer(playerid,Textdraw5);
                
viewingtextdraws[playerid] =1;
            }
            return 
1;
        }
        return 
1;

not working
Reply
#2

Schreib es so:

Код:
if(newkeys & KEY_FIRE) 
{ 
    new model = GetVehicleModel(GetPlayerVehicleID(playerid)); 
    if(model == 448) 
    {
Greekz
Reply
#3

thanks +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)