SA-MP Forums Archive
Why don't spawn vehicle help - 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 don't spawn vehicle help (/showthread.php?tid=602988)



Why don't spawn vehicle help - kevi11 - 16.03.2016

PHP код:
 CMD:spawnaveicolo(playeridparams[])
#pragma unused params
    
{
    if (
PlayerInfo[playerid][pAdminLevel]<=3) return SendClientMessage(playeridCOLOR_RED"Non sei un membro dello Staff o non hai il livello necessario");
    {
        
ShowPlayerDialog(playeriddialog_CarSpawnerDIALOG_STYLE_LIST"Spawner Sistem (HPanel)""Infernus\nTurismo\nPhoenix\nCheetah\nBanshee\nEuros\nBuffalo\nKart\nHotknife\nHustler\nComet\nStallion\nSunrise\nSandking""Spawna""Annulla");
    }
    return 
1;

Why don't spawn guys


Re: Why don't spawn vehicle help - UltraScripter - 16.03.2016

You show the wrong code
Show onplayerdialogresponse


Re: Why don't spawn vehicle help - kevi11 - 16.03.2016

I have only this command


Re: Why don't spawn vehicle help - dominik523 - 16.03.2016

You've clearly copied this from somewhere. Since the command is using a dialog to select which vehicle to spawn, you need to do something under OnDialogResponse.


Re: Why don't spawn vehicle help - czerwony03 - 16.03.2016

And
Код:
#pragma unused params
is in wrong place