Loading a string from a file?
#1

Hi,
I want to load a string from a file. I tried it a few times, but i always get this error:

Код:
C:\Users\*****\Desktop\samp02Xserver.win32\gamemodes\*****.pwn(18523) : error 047: array sizes do not match, or destination array is too small
The line is this:

Код:
PlayerInfo[playerid][pEmail] = dini_Get(connect, "Email");
I tried it like this too:

Код:
format(PlayerInfo[playerid][pEmail], 59, dini_Get(connect, "Email"));
Reply
#2

Your 'pEmail' string is smaller than the 'dini_Get' string (the one it returns).

Reply
#3

I tried to make the pEmail to 256 and tried PlayerInfo[playerid][pEmail] = dini_Get(connect, "Email"); , but i get the same error. Should i try format(PlayerInfo[playerid][pEmail], 59, dini_Get(connect, "Email"));?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)