dini_Get error
#1

Okay so I was scripting recently and I came across this error that my good 'ol buddy ****** couldn't help me fix.
Error:
pawn Код:
Error 47: array sizes do not match, or destination array is too small
And the line that it is giving me an error on is:
pawn Код:
Vehicle[vehicleid][vOwner] = dini_Get(file,"Owner"):
Before you write anything here are some answers to a few questions you have:

1.)Yes I have the "format(file" and enum already made
2.)This is the only thing I get an error on. It seems to be dini_Get that is so picky....
Reply
#2

Use https://sampwiki.blast.hk/wiki/Strcat
Reply
#3

pawn Код:
strmid(Vehicle[vehicleid][vOwner], dini_Get(file, "Owner"), false, strlen(dini_Get(file, "Owner")), MAX_PLAYER_NAME);
Reply
#4

Kar's worked. Thanks mate.
Reply
#5

N1 kar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)