29.05.2015, 14:25
Quote:
I had trouble with the code in a way that it logged me in even do I had typed the wrong password. Then I checked the value of Player[playerid][Password], and it was null. Then I checked the wiki for cache_get_field_content and there it says: "You have to provide the size (max_len) by yourself if you use an enum-array as destination.". So I changed it to this:
pawn Код:
|
Wiki method:
PHP код:
cache_get_field_content(0, "Password", Player[playerid][Password], mysql, 129);
PHP код:
new
database_password[129];
cache_get_field_content(0, "Password", database_password);
Player[playerid][Password][0] = EOS;
strcat(Player[playerid][Password], database_password, sizeof(database_password));