ERRORS WITH PUBLIC ONDIALOGRESPONSE !
#1

dddd
Reply
#2

WHY ARE YOU USING CAPS IN THE TITLE?

Which line is line 75?
I aint be guessing that
Reply
#3

lol nvm my bro posted this shit
Reply
#4

For the OnDialogResponse if I'm right it's
pawn Код:
forward OnDialogResponse;

The "inputtext" isn't defined.
pawn Код:
#define inputtext
It can also be (If i'm right.)
pawn Код:
new inputtext;
Reply
#5

ddddd
Reply
#6

check ur includes,
in the first line, do #include <a_samp>.
Or just post ur include list.
Reply
#7

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
check ur includes,
in the first line, do #include <a_samp>.
Or just post ur include list.
It will might work
Reply
#8

Ok check the code u originally posted. Ur missing a close bracket That's all that's wrong

EDIT - Actually ur code is really not making any sense…here...

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 16) {
        if(response) {
            switch(listitem) {
                case 0: GivePlayerWeapon(playerid, 24, 500);
                case 1: GivePlayerWeapon(playerid, 27, 500);
                case 2: GivePlayerWeapon(playerid, 31,500);
            }
        }
    }
    return 1;
}
that's how the code should look.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)