SA-MP Forums Archive
return value - 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: return value (/showthread.php?tid=649577)



return value - PepsiCola23 - 11.02.2018

so i got this

PHP код:
        if(skilltruck <2) return SendClientMessage(playeridCOLOR_WHITE"Your truck skill is not big enough "); ShowPlayerDialog(playeridDIALOG_TRUCKERDIALOG_STYLE_TABLIST_HEADERS"Choose the transport type""Type\tLegal/Illegal\tAvailable routes\tReward\nFood\tLegal\t25\t{4AE87D}${FFFFFF}\nElectronics\tLegal\t25\t{4AE87D}${FFFFFF}\nGas/Petrol\tLegal\t15\t{4AE87D}${FFFFFF}\nCar Theft\tIllegal\t2\t{4AE87D}${FFFFFF} + {F37138}special rewards{FFFFFF}""Choose""Cancel"); 
so,if he doesnt have skill 2 i want to send him a SCM and show him the dialog again so he can shooe another option.
the problem is is only sends him the message but doesn`t show the dialog.


Re: return value - jasperschellekens - 11.02.2018

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
so i got this

PHP код:
        if(skilltruck <2) return SendClientMessage(playeridCOLOR_WHITE"Your truck skill is not big enough "); 
ShowPlayerDialog(playeridDIALOG_TRUCKERDIALOG_STYLE_TABLIST_HEADERS"Choose the transport type""Type\tLegal/Illegal\tAvailable routes\tReward\nFood\tLegal\t25\t{4AE87D}${FFFFFF}\nElectronics\tLegal\t25\t{4AE87D}${FFFFFF}\nGas/Petrol\tLegal\t15\t{4AE87D}${FFFFFF}\nCar Theft\tIllegal\t2\t{4AE87D}${FFFFFF} + {F37138}special rewards{FFFFFF}""Choose""Cancel"); 
so,if he doesnt have skill 2 i want to send him a SCM and show him the dialog again so he can shooe another option.
the problem is is only sends him the message but doesn`t show the dialog.
try this
PHP код:
if(skilltruck <2
{
        
SendClientMessage(playeridCOLOR_WHITE"Your truck skill is not big enough "); 
        
ShowPlayerDialog(playeridDIALOG_TRUCKERDIALOG_STYLE_TABLIST_HEADERS"Choose the transport type""Type\tLegal/Illegal\tAvailable routes\tReward\nFood\tLegal\t25\t{4AE87D}${FFFFFF}\nElectronics\tLegal\t25\t{4AE87D}${FFFFFF}\nGas/Petrol\tLegal\t15\t{4AE87D}${FFFFFF}\nCar Theft\tIllegal\t2\t{4AE87D}${FFFFFF} + {F37138}special rewards{FFFFFF}""Choose""Cancel");  
        return 
0;




Re: return value - Mugala - 11.02.2018

you're ending the script with ;
change ; to , after SendClientMessage

; ShowPlayerDialog
, ShowPlayerDialog