i have 4 errors anyone can help me here
#1

Код:
./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;
Reply
#2

help me please
Reply
#3

You need to define variables before using it.
Reply
#4

can you fix the errors sir i cant fix it ? and i am newbie to scripting in RP gamemode
Reply
#5

U simply need to define your dialogs variables buddy...

Like for example... "new rAnswers[MAX_PLAYERS]"
Reply
#6

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]; 
Reply
#7

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....
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)