SA-MP Forums Archive
Correct? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Correct? (/showthread.php?tid=203029)



Correct? - Luis- - 25.12.2010

Is this correct as I get this error
Код:
C:\Users\BooNii3\Foxx RP\Clean Script (Windows)\Server Files\gamemodes\tAxIFRB.pwn(3046) : error 035: argument type mismatch (argument 2)
C:\Users\BooNii3\Foxx RP\Clean Script (Windows)\Server Files\gamemodes\tAxIFRB.pwn(3063) : error 035: argument type mismatch (argument 2)
pawn Код:
/*Line 3046*/       if (GetVehicleParamsEx(GetPlayerVehicleID(playerid),VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective))
            {
                Textdraw1 = TextDrawCreate(520.000000,116.000000,"Engine:");
                Textdraw3 = TextDrawCreate(559.000000,120.000000,"Off");
                TextDrawAlignment(Textdraw1,0);
                TextDrawAlignment(Textdraw3,0);
                TextDrawBackgroundColor(Textdraw1,0x000000ff);
                TextDrawBackgroundColor(Textdraw3,0x000000ff);
                TextDrawFont(Textdraw1,0);
                TextDrawLetterSize(Textdraw1,0.399994,1.600000);
                TextDrawFont(Textdraw3,2);
                TextDrawLetterSize(Textdraw3,0.299999,1.100000);
                TextDrawColor(Textdraw1,0xffffffff);
                TextDrawColor(Textdraw3,0xff0000cc);
                TextDrawSetOutline(Textdraw1,1);
                TextDrawSetOutline(Textdraw3,1);
            }
    /*Line 3063*/       if (GetVehicleParamsEx(GetPlayerVehicleID(playerid),VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective))
            {
                Textdraw1 = TextDrawCreate(520.000000,116.000000,"Engine:");
                Textdraw2 = TextDrawCreate(559.000000,120.000000,"On");
                TextDrawAlignment(Textdraw1,0);
                TextDrawAlignment(Textdraw2,0);
                TextDrawBackgroundColor(Textdraw1,0x000000ff);
                TextDrawBackgroundColor(Textdraw2,0x000000ff);
                TextDrawFont(Textdraw1,0);
                TextDrawLetterSize(Textdraw1,0.399994,1.600000);
                TextDrawFont(Textdraw2,2);
                TextDrawLetterSize(Textdraw2,0.399999,1.000000);
                TextDrawColor(Textdraw1,0xffffffff);
                TextDrawColor(Textdraw2,0x00ff00ff);
                TextDrawSetOutline(Textdraw1,1);
                TextDrawSetOutline(Textdraw2,1);
            }
        }



Re: Correct? - Hal - 25.12.2010

specify the lines


Re: Correct? - Luis- - 25.12.2010

Quote:
Originally Posted by Hal
Посмотреть сообщение
specify the lines
What do you mean?


Re: Correct? - Hal - 25.12.2010

Quote:
Originally Posted by -Luis
Посмотреть сообщение
What do you mean?
what lines are the errors on.


Re: Correct? - Luis- - 25.12.2010

Quote:
Originally Posted by Hal
Посмотреть сообщение
what lines are the errors on.
Done.


Re: Correct? - Hal - 25.12.2010

Hmmm, I was thinking that you may need to do GetVehicleParams before all that, and then see if engine = VEHICLE_PARAMS_ON ? Bad idea.

But, the way I made mine, they were separate publics and had engine = 1 to see if it was on then it toggles the td's. You can always just make a player variable.