Must be assigned to an array
#1

pawn Код:
for(new i = 0; i < 13; i++) {
        new i2 = i;
        i2 += 11;
        PlayerData[playerid][pWeapons][i] = field[i2];
    }
Quote:

error 006: must be assigned to an array

error is on line "PlayerData[pla..."
Reply
#2

Show me how you define PlayerData.
Reply
#3

Ah, I've got it, replacing the line with this:
pawn Код:
PlayerData[playerid][pWeapons][i] = strval(field[i2]);
has fixed the error. Thanks for the help anyway, have some rep for trying
Reply
#4

Quote:
Originally Posted by jameskmonger
Посмотреть сообщение
Ah, I've got it, replacing the line with this:
pawn Код:
PlayerData[playerid][pWeapons][i] = strval(field[i2]);
has fixed the error. Thanks for the help anyway, have some rep for trying
I was gonna tell you that , since I realised it was a string you tried saving, and storing like you used to in arrays, doesn't work .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)