ERRORS WITH PUBLIC ONDIALOGRESPONSE ! - 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: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! (
/showthread.php?tid=477666)
lekei -
xNatz - 25.11.2013
dddd
Re: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! -
ikkentim - 25.11.2013
WHY ARE YOU USING CAPS IN THE TITLE?
Which line is line 75?
I aint be guessing that
Re: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! -
xNatz - 25.11.2013
lol nvm my bro posted this shit
Re: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! -
Spydah - 25.11.2013
For the OnDialogResponse if I'm right it's
pawn Код:
forward OnDialogResponse;
The "inputtext" isn't defined.
It can also be (If i'm right.)
Re: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! -
xNatz - 25.11.2013
ddddd
Re: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! -
newbie scripter - 25.11.2013
check ur includes,
in the first line, do #include <a_samp>.
Or just post ur include list.
Re: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! -
SupermanV - 25.11.2013
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
Re: ERRORS WITH PUBLIC ONDIALOGRESPONSE ! -
CJay9209 - 25.11.2013
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.