Login With Any Password
#8

Quote:
Originally Posted by Shinja
Посмотреть сообщение
PHP код:
forward LoadAccount(playerid);
public 
LoadAccount(playerid)
{
    
PlayerInfo[playerid][ID] = cache_insert_id();
    
cache_get_field_content(0"Name"PlayerInfo[playerid][Name]);
    
cache_get_field_content(0"Password"PlayerInfo[playerid][Password]);
    
PlayerInfo[playerid][Cash] = cache_get_field_content_int(0"Cash");
   
    
SetSpawnInfoplayerid001958.331343.1215.36269.1500000);
    
SpawnPlayer(playerid);
    return 
1;

Actually he was doing
PHP код:
cache_get_field_content(1"Name"PlayerInfo[playerid][Name]);
    
cache_get_field_content(2"Password"PlayerInfo[playerid][Password]);
    
PlayerInfo[playerid][Cash] = cache_get_field_content_int(3"Cash"); 
He think its field number, no its row so must be 0, hmm thanks for your advice about insert id
Reply


Messages In This Thread
Login With Any Password - by Allura - 03.08.2016, 21:51
Re: Login With Any Password - by Stinged - 03.08.2016, 22:04
Re: Login With Any Password - by Allura - 03.08.2016, 22:24
Re: Login With Any Password - by Allura - 04.08.2016, 16:35
Re: Login With Any Password - by Shinja - 04.08.2016, 18:36
Re: Login With Any Password - by Threshold - 05.08.2016, 05:45
Re: Login With Any Password - by AndySedeyn - 05.08.2016, 06:29
Re: Login With Any Password - by Shinja - 05.08.2016, 13:32

Forum Jump:


Users browsing this thread: 3 Guest(s)