SA-MP Forums Archive
Why is this not working - 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)
+--- Thread: Why is this not working (/showthread.php?tid=332776)



Why is this not working - Scripter12345 - 09.04.2012

When ever i select the first option in my dialog it is meant to spawn in a different location but instead it spawns me into it in my current place


Why does it do that


pawn Код:
if(dialogid == DIALOG_BUYCAR+1)
    {
        if(response)
        {
            if(listitem == 0)
                {
                    CreateVehicleEx(playerid, 405, 546.78,1275.96,17.25+1, Angle, random(126), random(126), -1);
                }
                return 1;
        }
    }

Thank You


Please Help Me Please


Re: Why is this not working - Ash. - 09.04.2012

Your post is meaningless without showing us the CreateVehicleEx function. I assume CreateVehicleEx is intended on putting the player in a vehicle, therefore we need to see the code for that function.


Re: Why is this not working - Scripter12345 - 09.04.2012

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Your post is meaningless without showing us the CreateVehicleEx function. I assume CreateVehicleEx is intended on putting the player in a vehicle, therefore we need to see the code for that function.
No i said in my first post i want it to spawn in a different location and not put me in the vehicle


Please Help Me Please


Re: Why is this not working - Ash. - 09.04.2012

That is not what your first post said, or at least not how I interpreted it.

You'll need to rescript it to use JUST CreateVehicle, and then use SetPlayerPos/PutPlayerInVehicle if necessary.


Re: Why is this not working - Cjgogo - 09.04.2012

What kind of id check is that I don't think it works well,better enter the id of the dialog instead of the name


Re: Why is this not working - Ash. - 09.04.2012

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
What kind of id check is that I don't think it works well,better enter the id of the dialog instead of the name
What he is using is a definition, there is nothing wrong with that...