return value
#1

so i got this

PHP код:
        if(skilltruck <2) return SendClientMessage(playerid, COLOR_WHITE, "Your truck skill is not big enough "); ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_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.
Reply
#2

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

PHP код:
        if(skilltruck <2) return SendClientMessage(playerid, COLOR_WHITE, "Your truck skill is not big enough "); 
ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_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(playerid, COLOR_WHITE, "Your truck skill is not big enough "); 
        
ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_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;
} 
Reply
#3

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

; ShowPlayerDialog
, ShowPlayerDialog
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)