invalid subscript (not an array or too many subscripts): "asicerik"
#5

You forgot "Graffiti" before [playerid].

pawn Код:
strcat((Graffiti[playerid][active_character[playerid]][asicerik][0] = '\0', Graffiti[playerid][active_character[playerid]][asicerik]), inputtext, 128);
A way easier would be to use macro for it:
pawn Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
and the usage:
pawn Код:
strcpy(Graffiti[playerid][active_character[playerid]][asicerik], inputtext, 128);
Note that the array should be declared:
pawn Код:
new Graffiti[MAX_PLAYERS][MAX_GRAFFITI][grafInfo];
since you have one more index (playerid).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)