Something doesen't work. - 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: Something doesen't work. (
/showthread.php?tid=326037)
Something doesen't work. -
Rock1 - 15.03.2012
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:
It doesen't save anything, not even iUID or name..
Re: Something doesen't work. -
CoaPsyFactor - 15.03.2012
any error?
Re: Something doesen't work. -
Rock1 - 16.03.2012
Quote:
Originally Posted by CoaPsyFactor
any error?
|
No error, no warnings.
Re: Something doesen't work. -
AshiR - 16.03.2012
from where you download that server?
Re: Something doesen't work. -
Rock1 - 16.03.2012
Quote:
Originally Posted by AshiR
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..
Re: Something doesen't work. -
Slice - 17.03.2012
You need to register and log in the player!