PDA

View Full Version : Something doesen't work.


Rock1
15/03/2012, 11:08 PM
Hi.

Today i've made something for my server but failed.
Could you tell me what is wrong with this code?
new DPoints[ MAX_PLAYERS ];

public OnFilterScriptInit( )
{
BUD::Setting( opt.Database, "UserPoints.db" );
BUD::Setting( opt.Asynchronous, true );
BUD::Setting( opt.KeepAliveTime, 3000 );
BUD::Setting( opt.CheckForUpdates, false );

BUD::Initialize( );

BUD::VerifyColumn( "Drift_Points", BUD::TYPE_NUMBER );

return 1;
}

public OnFilterScriptExit( )
{
BUD::Exit( );

return 1;
}

public OnPlayerConnect( playerid )
{
new iUID = BUD::GetNameUID( GetName( playerid ) ),
_d_points
;

BUD::MultiGet( iUID, "i", "Drift_Points", _d_points );

DPoints[ playerid ] = _d_points;

return 1;
}

public OnPlayerDisconnect( playerid, reason )
{
new iUID = BUD::GetNameUID( GetName( playerid ) ),
_d_r_points = DPoints[ playerid ]
;

BUD::MultiSet( iUID, "i", "Drift_Points", _d_r_points );

return 1;
}
Integrers from variable DPoints won't save and my database looks like this:
http://i1121.photobucket.com/albums/l520/Rock_Ro/blabla.jpg
It doesen't save anything, not even iUID or name..

CoaPsyFactor
15/03/2012, 11:47 PM
any error?

Rock1
16/03/2012, 09:00 AM
any error?

No error, no warnings.

AshiR
16/03/2012, 09:01 AM
from where you download that server?

Rock1
16/03/2012, 09:36 AM
from where you download that server?

No where. It's a server i made from 0.
That code is from a filterscript, it's not included in gamemode..

Slice
17/03/2012, 07:43 PM
You need to register and log in the player!