Array Query
#1

Код:
PlayerInfo[playerid][pCreatedSatchelsX[0]]
Would that work? As i compile and get only 4 errors. I'm concluding it's the cause, correct?
If so, how would the right way go?

Код:
C:\Documents and Settings\Ryan\Desktop\Satchel.pwn(131) : warning 215: expression has no effect
C:\Documents and Settings\Ryan\Desktop\Satchel.pwn(131) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Ryan\Desktop\Satchel.pwn(131) : error 029: invalid expression, assumed zero
Reply
#2

The above example should work. It's something else in your code
Reply
#3

Quote:
Originally Posted by Ryan.M
...
That won't work, unless you're not using enumerations.

I believe this will work. Don't quote me on it though.


Код:
PlayerInfo[playerid][pCreatedSatchelsX][0]
Reply
#4

I just tested this code and it works
pawn Код:
new array[20];
new someinfo[5];

public OnFilterScriptInit()
{
  someinfo[1] = 12;
  array[someinfo[1]] = 20;
  printf("%d",array[12]);
}
And I can guarantee that it works 100% with enumerators since I use examples like that a lot
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)