Need help =((
#2

Next time copy/paste your code.
Here is error that you did
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
name[MAX_PLAYER_NAME], file[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(filesizeof(file), SERVER_USER_FILEname);
    if(
gPlayerLogged[playerid] == 1)
    {
        
dini_IntSet(file"Score"PlayerInfo[playerid][pScore]);
        
dini_IntSet(file"Cash"PlayerInfo[playerid][pCash]);
        
dini_IntSet(file"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
    }
    
gPlayerLogged[playerid] = 0;
}
return 
1;
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
if (
dialogid == 1)
    {
        new 
name[MAX_PLAYER_NAME], file[256], string[128];
        
GetPlayerName... 
in OnPlayerDisconnect callback you closed callback and then added return 1. It should be like this:

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
name[MAX_PLAYER_NAME], file[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(filesizeof(file), SERVER_USER_FILEname);
    if(
gPlayerLogged[playerid] == 1)
    {
        
dini_IntSet(file"Score"PlayerInfo[playerid][pScore]);
        
dini_IntSet(file"Cash"PlayerInfo[playerid][pCash]);
        
dini_IntSet(file"AdminLevel",PlayerInfo[playerid][pAdminLevel]);
    }
    
gPlayerLogged[playerid] = 0;
    return 
1//[MG]DIMI: THIS SHOULD BE UP
// [MG]DIMI: AND THIS ONE DOWN
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
if (
dialogid == 1)
    {
        new 
name[MAX_PLAYER_NAME], file[256], string[128];
        
GetPlayerName... 
Reply


Messages In This Thread
Need help =(( - by antonio600x - 28.08.2011, 19:25
Re: Need help =(( - by [MG]Dimi - 28.08.2011, 19:31
Re: Need help =(( - by antonio600x - 28.08.2011, 19:53
Re: Need help =(( - by Markx - 28.08.2011, 19:55
Re: Need help =(( - by antonio600x - 28.08.2011, 20:12
Re: Need help =(( - by [MG]Dimi - 28.08.2011, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)