Array must be indexed
#1

Код:
new msg1 = strdel(text, newline, 128);
new msg2 = strdel(text, 0, newline);
What is wrong?
Reply
#2

Please show the whole code ( i mean the error part ) and full pawn compiler output
Reply
#3

That is the error part.
And the error is "error [number]: Array must be indexed."
And as said above, we need more of the code, probably the whole code. Please provide it
Reply
#4

'strdel' does not return a value, so having something equal to it is illogical.

The function Strmid would be better for this situation.

pawn Код:
new msg1[128], msg2[128];
    strmid(msg1, string, 0, newline);
    strmid(msg2, string, newline, strlen(string) - 1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)