Params??
#1

Okey, I must be very stupid but... What does this mean? :S

Код:
C:\Documents and Settings\HP_Дgaren\Skrivbord\SAMP\samp server\gamemodes\EQRP.pwn(953) : error 033: array must be indexed (variable "params")
C:\Documents and Settings\HP_Дgaren\Skrivbord\SAMP\samp server\gamemodes\EQRP.pwn(974) : error 033: array must be indexed (variable "params")
C:\Documents and Settings\HP_Дgaren\Skrivbord\SAMP\samp server\gamemodes\EQRP.pwn(976) : error 033: array must be indexed (variable "params")
Reply
#2

033 array must be indexed (variable name)
An array as a whole cannot be used in a expression; you must
indicate an element of the array between square brackets.

http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf (appendix A)
Reply
#3

............................
Reply
#4

make somestuffwhatever into somestuff[whatever]
Reply
#5

Alright, to explain it a bit, say you have an array that looks like this

pawn Код:
new array[] = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
what you're trying to do is something like this (I think)

pawn Код:
if (array == 5)
and what you should be doing is

pawn Код:
if (array[5] == 4)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)