error 033: array must be indexed
#1

Hi i have this problem but i don' know how to fix it.

Код:
new saved_nick[32];
saved_nick = strval(dini_Get(F_MAX_STATS_NAME, "Richest")); // line with problem
Reply
#2

Well that's because you're converting a string to an integer and then storing it in a string. Why are you doing that? What are you trying to get from the file, a string or an integer?
Reply
#3

Yes, if i delete it (strval) it say: array sizes do not match, or destination array is too small
And i want to get Name (string)
Reply
#4

pawn Код:
new saved_nick[32];
strcat(saved_nick, dini_Get(F_MAX_STATS_NAME, "Richest"));
Reply
#5

Vince, omg it works thank you so much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)