04.02.2018, 22:54
I really appreciate your help guys with me
Problem fixed!
If we looked at this code we can see that there exist two errors :
- the first one, which is calling
- the second
# ID = 1 (Which is my ID on database)
Solution :
- Remplaced by :
-
Before :
The correct one :
Problem fixed!
If we looked at this code we can see that there exist two errors :
- the first one, which is calling
Код:
....(error #1064)
Код:
(....WHERE ID = 0)
Solution :
- Remplaced by :
Код:
UPDATE `srv_users` SET `Niveau` = '%d', `Respect` = '%d', `ServiceMinute` = '%d', `MinExp` = '%d', `AdminLevel`= '%d', `Banexp`= '%d', `Banm`= '%d', `Bany`= '%d', `Banhour`= '%d', `Banmin` = '%d', `RaisonBanni` = '%s', `VIP` = '%d', `Rename` = '%d' WHERE `ID` = '%d'
Before :
Код:
public CheckAccount(playerid) //That's the public I call when a player is connecting to check if he's/not registred { new rows, fields, string[144]; cache_get_data(rows, fields); if(!rows) { //Not registred } else //Reigstred, so we're going to load his information { PlayerInfo[playerid][pID] = cache_get_field_content_int(0, "ID"); } return 1; }
Код:
public CheckAccount(playerid) //That's the public I call when a player is connecting to check if he's/not registred { new rows, fields, string[144]; cache_get_data(rows, fields); if(!rows) { //Not registred } else //Reigstred, so we're going to load his information { for(new iSlot, count_nb = cache_get_row_count(); iSlot < count_nb; iSlot++) { PlayerInfo[playerid][pID] = cache_get_field_content_int(iSlot, "ID"); } } return 1; }