Dialog bug
#6

Quote:
Originally Posted by Miladinovic
Посмотреть сообщение
you do not need return 1; here but i don't understand, it won't do anything?

Код:
if(response) 
{ 
              GivePlayerMoney(playerid, -5000); 
              dini_IntSet(file, "HasBankAccount", 1); 
              SendClientMessage(playerid, COLOR_GREEN, "Congratulations, you've created a bank account!"); 
} 
return 1;
still nothing, it just doesnt do any of those functions

u asked if i have something like %s.ini, yes i do:
PHP код:
public OnPlayerConnect(playerid)
{
    
// We get their name and format the file name
    
new pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(filesizeof(file), "%s.ini"pName);
    if(!
dini_Exists(file)){ // account doesn't exist
    
GivePlayerMoney(playerid10000);
    
pAdmin[playerid] = 0;
    
dini_Create(file);
    
dini_IntSet(file"Money"GetPlayerMoney(playerid)) && dini_IntSet(file"Admin"pAdmin[playerid] = 0);
    }
    else
    {
    
GivePlayerMoney(playeriddini_Int(file"Money"));
    
pAdmin[playerid] = dini_Int(file"Admin");
    
dini_IntSet(file"Money"GetPlayerMoney(playerid));
    
dini_IntSet(file"Admin"pAdmin[playerid]);
    } 
Reply


Messages In This Thread
Dialog bug - by TroubleFingers - 08.11.2016, 14:20
Re: Dialog bug - by Miladinovic - 08.11.2016, 14:34
Re: Dialog bug - by TroubleFingers - 08.11.2016, 14:35
Re: Dialog bug - by Miladinovic - 08.11.2016, 14:42
Re: Dialog bug - by Miladinovic - 08.11.2016, 14:44
Re: Dialog bug - by TroubleFingers - 08.11.2016, 14:49
Re: Dialog bug - by Miladinovic - 08.11.2016, 14:53
Re: Dialog bug - by Miladinovic - 08.11.2016, 14:56
Re: Dialog bug - by TroubleFingers - 08.11.2016, 15:00
Re: Dialog bug - by Miladinovic - 08.11.2016, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)