Dialog 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: Dialog help (
/showthread.php?tid=490914)
Dialog help -
KyLeBlaK - 28.01.2014
i am stuck here
http://pastebin.com/KiSbG96K i seem to get this error
C:\Users\Kyle\Desktop\NFG Freeroam 0.3x\gamemodes\NFG_Freeroam.pwn(269) : error 025: function heading differs from prototype
C:\Users\Kyle\Desktop\NFG Freeroam 0.3x\gamemodes\NFG_Freeroam.pwn(294) : error 030: compound statement not closed at the end of file (started at line 271)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
can you help me
thank you
Re: Dialog help -
McBan - 28.01.2014
Код:
If (response)
{
Switch (dialogid) // Switching to the correct dialog
{
Case 1:
{
Switch (listitem) // List Items
{
Case 0:
{
// Code Placed Here
}
Case 1:
{
// Code Placed Here
}
}
}
}
}
Re: Dialog help -
Konstantinos - 28.01.2014
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch (dialogid)
{
case DIALOG_HELP:
{
if (response)
{
switch (listitem)
{
case 0:
{
// code for: /job
}
case 1:
{
// code for: /cmd
}
}
}
return 1;
}
}
return 0;
}
EDIT: McBan, you had posted an awful code that was not even possible to compile and then edited your post after I posted and you copied-pasted my post, removed the 2 comments..