new string[50];
format(string, sizeof(string), "/sAccounts/%s.seifadmin", name);
dini_Set(string, "ip",ip);
new playerIP[16], path[22+MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], fileip[16];
GetPlayerIp(playerid, playerIP, sizeof(playerIP));
GetPlayerName(playerid, name, sizeof(name));
format(path, sizeof(path), "/sAccounts/%s.seifadmin", name);
/*695*/ fileip = dini_Get(path, "ip");
if (strcmp(playerIP, fileip, false)== 0)
{
SendClientMessage(playerid, YELLOW, "|- Auto Login -|");
C:\Documents and Settings\Tadej\Desktop\samp server\samp02Xserver.win32\filterscripts\SeifAdmin.pwn(695) : error 047: array sizes do not match, or destination array is too small
|
Originally Posted by cοοp
1. Problems with edited scripts belongs in the source script's thread.
2. You still didn't tell me what line "695" is. ![]() |
fileip[16]
fileip[255]
|
Originally Posted by cοοp
1. Problems with edited scripts belongs in the source script's thread.
2. You still didn't tell me what line "695" is. ![]() |
/*695*/ fileip = dini_Get(path, "ip");
|
Error 047: Array sizes do not match, or destination array is too small: For array assignment, the arrays on the left and the right side of the assignment operator must have the same number of dimensions. In addition: ⋄ for multi-dimensional arrays, both arrays must have the same size; ⋄ for single arrays with a single dimension, the array on the left side of the assignment operator must have a size that is equal or bigger than the one on the right side. When passing arrays to a function argument, these rules also hold for the array that is passed to the function (in the function call) versus the array declared in the function definition. When a function returns an array, all return statements must specify an array with the same size and dimensions. |
|
Originally Posted by Jefff
dini_Get returns MAX_STRING so 255, change
Код:
fileip[16] Код:
fileip[255] |