06.03.2010, 22:21
While debugging... I've found this:
As you can see the problem starts at debug #5...
The code for that is...
Код:
[23:09:32] 22FB46E1955A8AEB31C59D79D887D02AF2D1BC4524E85AAFA2455CC78BC0147B10DD477201D147E2F5CA910BB43D982320478B9D179DDDE85F4806497FE2EE68 - 1 [23:09:32] 22FB46E1955A8AEB31C59D79D887D02AF2D1BC4524E85AAFA2455CC78BC0147B10DD477201D147E2F5CA910BB43D982320478B9D179DDDE85F4806497FE2EE68 - 2 [23:09:32] 22FB46E1955A8AEB31C59D - 5 [23:09:32] 22FB46E1955A8AEB31C59D - 3 [23:09:38] 22FB46E1955A8AEB31C59D - 4
The code for that is...
Код:
public PlayerLogIn(playerid, password[]) { new string2[128]; format(string2, sizeof(string2), "Accounts/%s.ini", PlayerName(playerid)); new File: UserFile = fopen(string2, io_read); if (UserFile) { new Data[256]; new key[256], val[256]; fread(UserFile , Data, sizeof(Data)); key = ini_GetKey(Data); if(strcmp(key, "Password", true) == 0) { val = ini_GetValue(Data); strmid(PlayerInfo[playerid][pPassword], val, 0, strlen(val)-1, 255); printf("%s - 5", PlayerInfo[playerid][pPassword]); } if(strcmp(PlayerInfo[playerid][pPassword], password, true) == 0)