i have 4 errors anyone can help me here - 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: i have 4 errors anyone can help me here (
/showthread.php?tid=617782)
i have 4 errors anyone can help me here -
PrinceKumar - 26.09.2016
Код:
./includes/OnDialogResponse.pwn(64) : error 017: undefined symbol "INTRO_TEST"
./includes/OnDialogResponse.pwn(67) : error 017: undefined symbol "RP_Q1"
./includes/OnDialogResponse.pwn(69) : error 017: undefined symbol "RP_Q1"
./includes/OnDialogResponse.pwn(70) : error 017: undefined symbol "rAnswers"
./includes/OnDialogResponse.pwn(70) : warning 215: expression has no effect
./includes/OnDialogResponse.pwn(70) : error 001: expected token: ";", but found "]"
./includes/OnDialogResponse.pwn(70) : error 029: invalid expression, assumed zero
./includes/OnDialogResponse.pwn(70) : fatal error 107: too many error messages on one line
line 64
Код:
if(dialogid==INTRO_TEST){
line 67
Код:
ShowPlayerDialog(playerid,RP_Q1,DIALOG_STYLE_LIST,"
line 69
[/code]
Код:
line 70
if(listitem==0) rAnswers[playerid]+=1;
Re: i have 4 errors anyone can help me here -
PrinceKumar - 26.09.2016
help me please
Re: i have 4 errors anyone can help me here -
Dayrion - 26.09.2016
You need to define variables before using it.
Re: i have 4 errors anyone can help me here -
PrinceKumar - 26.09.2016
can you fix the errors sir i cant fix it

? and i am newbie to scripting in RP gamemode
Re: i have 4 errors anyone can help me here -
Alpha000 - 26.09.2016
U simply need to define your dialogs variables buddy...
Like for example... "new rAnswers[MAX_PLAYERS]"
Re: i have 4 errors anyone can help me here -
Gotham - 26.09.2016
Define the dialog,INTRO_TEST and RP_Q1
PHP код:
#define INTRO_TEST 1
#define RP_Q1 2
for the rAnswers
PHP код:
new rAnswers[MAX_PLAYERS];
Re: i have 4 errors anyone can help me here -
Alpha000 - 26.09.2016
Quote:
Originally Posted by Gotham
Define the dialog,INTRO_TEST and RP_Q1
PHP код:
#define INTRO_TEST 1
#define RP_Q1 2
for the rAnswers
PHP код:
new rAnswers[MAX_PLAYERS];
|
Make sure dialog ids "1" "2" are not being used already....
Re: i have 4 errors anyone can help me here -
PrinceKumar - 27.09.2016
Quote:
Define the dialog,INTRO_TEST and RP_Q1
PHP код:
#define INTRO_TEST 1
#define RP_Q1 2
for the rAnswers
new rAnswers[MAX_PLAYERS];
|
thanks sir