SA-MP Forums Archive
help need with dialogs - 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: help need with dialogs (/showthread.php?tid=471471)



help need with dialogs - JeaSon - 23.10.2013

the problem is when ever i try to compile i got errors

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{ // this is line 4450
        if(!success) ShowPlayerDialog(playerid,1 , DIALOG_STYLE_MSGBOX, "Revolutionx Wrond Command", "Sorry, the command you typed is not known!\n\nA complete list of all 1500+ RevolutionX commands is available on our website\n{9E3700}www,RevolutionX.x10.mx visit for more information\n\nif you are new you can type /tour to take a quick tour of RevolutionX\n\nyou can spawn a vehicle by using the /v1 to /v17 dialogs (or type /car)\n\nClick the  Commands button below to display the most commonly used commands or type /help for more information", "Commands", "OK"); // this is line 4451
        return 1;
}

OnDialogResponse

pawn Код:
if(dialogid == 1)
    {
        if(response)
        {
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "RevolutionX Commands Page[1-2]", "**/healme {005F00} to heal your self cost $5000\n**/register {005F00} to save ur stats like Score,Skin,money,level,rank\n**/ga {0000DE} to teleport to Sf airport\n**/gals {0000DE} to teleport to LS Airport\n**/galv{0000DE} to teleport to LV Airport\n\n\nMove RevolutionX Special Commands is in devlopement \nsoon more commands will release \n{FF8200}RevolutionX {0091FF}v1.7.2  build 17", "Next", "OK");
            return 1;
        }
    }
    if(dialogid == 2)
    {
        if(response)
        {
            ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "RevolutionX Commands Page[2-2]", "**/healme {005F00} to heal your self cost $5000\n**/register {005F00} to save ur stats like Score,Skin,money,level,rank\n**/ga {0000DE} to teleport to Sf airport\n**/gals {0000DE} to teleport to LS Airport\n**/galv{0000DE} to teleport to LV Airport\n\n\nMove RevolutionX Special Commands is in devlopement \nsoon more commands will release \n{FF8200}RevolutionX {0091FF}v1.7.2  build 17\n\n\nRevolution Commands Page [2/2]", "Close", "OK");
            return 1;
        }
    }



im getting these errors

Код:
E:\SEv2\gamemodes\SU.pwn(4450) : error 075: input line too long (after substitutions)
E:\RevolutionX\gamemodes\RX.pwn(4451) : error 037: invalid string (possibly non-terminated string)
E:\RevolutionX\gamemodes\RX.pwn(4451) : error 017: undefined symbol "Sorry"
E:\RevolutionX\gamemodes\RX.pwn(4451) : error 017: undefined symbol "command"
E:\RevolutionX\gamemodes\RX.pwn(4451) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664



Re: help need with dialogs - HardRock - 23.10.2013

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
// this is line 4450
        
new string[500];
        
format(stringsizeof(string), "Sorry, the command you typed is not known!\n\nA complete list of all 1500+ RevolutionX commands is available on our website\n{9E3700}www,RevolutionX.x10.mx visit for more information\n\nif you are new you can type /tour to take a quick tour of RevolutionX\n\nyou can spawn a vehicle by using the /v1 to /v17 dialogs (or type /car)\n\nClick the  Commands button below to display the most commonly used commands or type /help for more information");
        if(!
successShowPlayerDialog(playerid,DIALOG_STYLE_MSGBOX"Revolutionx Wrond Command"string"Commands""OK"); // this is line 4451
        
return 1;




Re: help need with dialogs - JeaSon - 23.10.2013

thanks