SA-MP Forums Archive
DIALOG_STYLE_LIST - 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_STYLE_LIST (/showthread.php?tid=554220)



DIALOG_STYLE_LIST - MrCallum - 02.01.2015

I get these errors/warnings:

Quote:

C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : error 001: expected token: ";", but found ")"
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\NCRP Working\gamemodes\CorrectLALSR.pwn(1806) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

For:

Код:
CMD:playmusic(playerid, params[])
{
	ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music List", "My Time is Now\nPika Girl\n", "Select", "Cancel");LINE 1806
	return 1;
}



Re: DIALOG_STYLE_LIST - TonyII - 02.01.2015

I copied pasted the command and it compiled fine with me, are you sure thats all there is or show us how you defined DIALOG_MUSIC


Re: DIALOG_STYLE_LIST - Alvord - 02.01.2015

Try this:
pawn Код:
#define DIALOG_MUSIC 1234
CMD:playmusic(playerid, params[])
{
    #pragma unused params
    ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music List", "My Time is Now\nPika Girl", "Select", "Cancel");
    return 1;
}



Re: DIALOG_STYLE_LIST - Neos07 - 02.01.2015

Solved:

Quote:

CMDlaymusic(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_STYLE_LIST, DIALOG_MUSIC, "Music List", "My Time is Now\nPika Girl\n", "Select", "Cancel")
return 1;
}