OnDialogResponse issue. - 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: OnDialogResponse issue. (
/showthread.php?tid=461072)
OnDialogResponse issue. -
Beckett - 31.08.2013
Today I've tried to do a little script in my gamemode about trucker etc.. So I've done everything, when a player enter the vehicle with the model id a dialog will appear showing if he want to start his job or not, if he click on "No" then he'll be ejected from the vehicle, if he clicks "Start" aka "Yes" then he'll proceed with his job, when he click on yes a checkpoint will appear:-
Код:
SetPlayerCheckpoint(playerid,trucker1,5.0); // << trucker1 is defined yes.
But when I compile it says something about another cmd?
Code:
Код:
if(dialogid == dtrucker)
{
if(!response) return RemovePlayerFromVehicle(playerid);
if(response)
{
SetPlayerCheckpoint(playerid,trucker1,5.0);
}
Error:
Код:
C:\Users\ABC\Desktop\0.3x Package\gamemodes\&&&&.pwn(1778) : warning 217: loose indentation
C:\Users\ABC\Desktop\0.3x Package\gamemodes\&&&&.pwn(1839) : warning 217: loose indentation
C:\Users\ABC\Desktop\0.3x Package\gamemodes\&&&&.pwn(1839) : error 029: invalid expression, assumed zero
C:\Users\ABC\Desktop\0.3x Package\gamemodes\&&&&.pwn(1839) : error 017: undefined symbol "cmd_aduty"
C:\Users\ABC\Desktop\0.3x Package\gamemodes\&&&&.pwn(1839) : error 029: invalid expression, assumed zero
C:\Users\ABC\Desktop\0.3x Package\gamemodes\&&&&.pwn(1839) : fatal error 107: too many error messages on one line
Re: OnDialogResponse issue. -
Beckett - 31.08.2013
Oh I figured it myself, I've just realized that I forgot a bracket.