SA-MP Forums Archive
One Eroor help fast! - 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: One Eroor help fast! (/showthread.php?tid=530803)



One Eroor help fast! - ILOVEPAWNV - 09.08.2014

Код HTML:
error 014: invalid statement; not in switch
error 001: expected token: ";", but found ":"
 error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line
the line!

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
		case 2:
		{
			if(!response) return 0;
			switch(listitem)
			{



Re: One Eroor help fast! - ]Rafaellos[ - 09.08.2014

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 2:
        {
            if(!response)
                return 0;
            else
            {
                switch(listitem)
                {
                    //Keep going



Re: One Eroor help fast! - Hammomd - 09.08.2014

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   //Can Use
    if(dialogid == yourdialogname)
    {
            if(!reponse) return 0;
            if(response)
            {
		switch(listitem)
		{
                       case 0:
		       {
                       } //and case 1..... and 2..... and >>
Try