SA-MP Forums Archive
erreur - 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: erreur (/showthread.php?tid=593689)



erreur - Sirop - 08.11.2015

Код HTML:
pInfo[playerid][tutorial] = 1;
Код HTML:
error 028: invalid subscript (not an array or too many subscripts): "pInfo"
Код HTML:
warning 215: expression has no effect
Код HTML:
error 001: expected token: ";", but found "]"
Код:
error 029: invalid expression, assumed zero
Код:
fatal error 107: too many error messages on one line
For what pleases


Re: erreur - kalanerik99 - 08.11.2015

Can U show use the code where errors appear (lines) please


Re : erreur - Sirop - 08.11.2015

The line or there's error is its

pInfo[playerid][tutorial] = 1;


Re: erreur - kalanerik99 - 08.11.2015

Show me the enum and the
Код:
new pInfo[MAX_PLAYERS][....]



Re : erreur - Sirop - 08.11.2015

Код HTML:
arning 219: local variable "pInfo" shadows a variable at a preceding level
C:\Users\Yamaha\Desktop\-\gamemodes\LSVRP.pwn(8702) : error 017: undefined symbol "Tutorial"
C:\Users\Yamaha\Desktop\-\gamemodes\LSVRP.pwn(8703) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Yamaha\Desktop\-\gamemodes\LSVRP.pwn(8703) : warning 215: expression has no effect
C:\Users\Yamaha\Desktop\-\gamemodes\LSVRP.pwn(8703) : error 001: expected token: ";", but found "]"
C:\Users\Yamaha\Desktop\-\gamemodes\LSVRP.pwn(8703) : error 029: invalid expression, assumed zero
C:\Users\Yamaha\Desktop\-\gamemodes\LSVRP.pwn(8703) : fatal error 107: too many error messages on one line
Код:
new pInfo[MAX_PLAYERS][Tutorial]
			pInfo[playerid][Tutorial] = 1;



Re: erreur - kalanerik99 - 08.11.2015

Oooh I see

Just make
PHP код:
new Tutorial[MAX_PLAYERS]; 
And
PHP код:
Tutorial[playerid] = 1
Noo need of pInfo


Re : erreur - Sirop - 08.11.2015

Ohhhhh thanks !!!!!! I give you one rep after 24


Re: Re : erreur - MD5 - 08.11.2015

Quote:
Originally Posted by Sirop
Посмотреть сообщение
Ohhhhh thanks !!!!!! I give you one rep after 24
Likea dis.

Код:
new Tutorial[MAX_PLAYERS];



Re: erreur - kalanerik99 - 08.11.2015

No problem !!
Just stay doing good scripts!!

And @MD5 stop getting posts like this way


Re: erreur - MD5 - 08.11.2015

Quote:
Originally Posted by kalanerik99
Посмотреть сообщение
No problem !!
Just stay doing good scripts!!

And @MD5 stop getting posts like this way
You just edited your own post after I corrected you simply.. you forgot the token ;