Dialog Respons Problem
#1

I have problem with dialog.

Код:
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\General_Alpha.pwn(680) : error 001: expected token: ":", but found ";"
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\General_Alpha.pwn(680) : error 036: empty statement
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\General_Alpha.pwn(691) : warning 209: function "OnDialogResponse" should return a value
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\General_Alpha.pwn(694) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Korisnik\Desktop\G.R.P\gamemodes\General_Alpha.pwn(695) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
This is errors
this is codes from line 680 to 700
http://pokit.etf.ba/get/?44fbd9ae820...bbca793bfd.jpg
pawn Код:
case 2:
                {
                    new pName[MAX_PLAYER_NAME];
                    new string[300];
                    GetPlayerName(playerid, pName, sizeof(pName));
                    format(string, sizeof(string), "{F81414}%s has been teleported to Area 69!If you want too then do /tele and Area 69!", pName);
                    SendClientMessageToAll(0xEB0000FF, string);
                    SetPlayerPos(playerid,351.4114,2024.7943,22.6406);
                }
                case 3;
                {
                    new pName[MAX_PLAYER_NAME];
                    new string[300];
                    GetPlayerName(playerid, pName, sizeof(pName));
                    format(string, sizeof(string), "{F81414}%s has been teleported to Abandon Airport!If you want too then do /tele and Abandon Airport!", pName);
                    SendClientMessageToAll(0xEB0000FF, string);
                    SetPlayerPos(playerid,413.7651,2537.4702,19.1484);
                }
             }

        }
        // Add the rest of your dialogs here

    }
    return 0;
Reply
#2

your problem on line 680 you put ; but you need :
Reply
#3

Take a look at the errors, read them and understand them.

First error is extremely simple:

pawn Код:
case 3;
You're using a semi-colon instead of colon, so change it to:

pawn Код:
case 3:
Then you have a warning that OnDialogResponse doesn't have a return value when it is expected, so...add one!

Now try solve the rest of the errors, the errors explain the problem to you
Reply
#4

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
your problem on line 680 you put ; but you need :
OMG Thank you (I AM REALLY NOOB )
Reply
#5

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Take a look at the errors, read them and understand them.

First error is extremely simple:

pawn Код:
case 3;
You're using a semi-colon instead of colon, so change it to:

pawn Код:
case 3:
Then you have a warning that OnDialogResponse doesn't have a return value when it is expected, so...add one!

Now try solve the rest of the errors, the errors explain the problem to you
Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)