SA-MP Forums Archive
MySQL cache - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL cache (/showthread.php?tid=613552)



MySQL cache - Shinja - 29.07.2016

PHP код:
    new str[100];
    
cache_get_field_content(1"Password"pPass[playerid]);
    
format(str100"Password loaded is: %s"pPass[playerid]);
    
SendClientMessage(playerid, -1str); 
This pPass is getting: "NULL"
I get message
"Password loaded is: Null"

How to fix it please? i'm using the pPass on login strcmp


Re: MySQL cache - Gammix - 29.07.2016

The rowids start from 0, so i am guessing you load only 1 row.