SA-MP Forums Archive
bud system - 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: bud system (/showthread.php?tid=640573)



bud system - crukk11 - 04.09.2017

is this right.the TYPE

PHP код:
 BUD::VerifyColumn(  "p_money"BUD::TYPE_NUMBER); 
        
BUD::VerifyColumn(  "p_score"BUD::TYPE_NUMBER);
        
BUD::VerifyColumn(  "p_kill"BUD::TYPE_NUMBER);
        
BUD::VerifyColumn(  "p_death"BUD::TYPE_NUMBER);
        
BUD::VerifyColumn(  "p_id"BUD::TYPE_NUMBER);
        
BUD::VerifyColumn(  "p_password"BUD::TYPE_NUMBER);
        
BUD::VerifyColumn(  "p_name"BUD::TYPE_NUMBER); 



Re: bud system - Meller - 04.09.2017

Код:
enum BUD::e_COLUMN_TYPES {
	BUD::TYPE_NUMBER,
	BUD::TYPE_FLOAT,
	BUD::TYPE_STRING
};
http://spelsajten.net/bud.inc

Why use a system that's basically SQLite from 2010 when there's better solutions though..?


Re: bud system - crukk11 - 04.09.2017

because it easy


Re: bud system - Meller - 04.09.2017

Quote:
Originally Posted by crukk11
Посмотреть сообщение
because it easy
fair enough


ye it's correct.


Re: bud system - crukk11 - 04.09.2017

PHP код:
BUD::MultiSetiUID"ii",
            
"p_money"GetPlayerMoneyplayerid ),
            
"p_score"GetPlayerScoreplayerid )
            
"p_kill"UserInfoplayerid ][ p_kill ],
            
"p_death" UserInfoplayerid ][ p_death ],
            
"p_id" UserInfoplayerid ][ p_id ],
            
"p_password" UserInfoplayerid ][ p_password ]
            ); 
this is right?


Re: bud system - Meller - 04.09.2017

PHP код:
BUD::MultiSetiUID"ii"
            
"p_money"GetPlayerMoneyplayerid ), 
            
"p_score"GetPlayerScoreplayerid ),
            
"p_kill"UserInfoplayerid ][ p_kill ], 
            
"p_death"UserInfoplayerid ][ p_death ], 
            
"p_id"UserInfoplayerid ][ p_id ], 
            
"p_password"UserInfoplayerid ][ p_password 
            ); 
check the code urself next time plz


thxx


Re: bud system - Spmn - 04.09.2017

Quote:
Originally Posted by Meller
Посмотреть сообщение
[CODE]Why use a system that's basically SQLite from 2010 when there's better solutions though..?
sqlite hasn't changed since 2010


Re: bud system - crukk11 - 04.09.2017

PHP код:
new  iUID BUD::GetNameUIDGetNameplayerid ) );
                
BUD::MultiSetiUID"i","p_money"GetPlayerMoneyplayerid ),
                
BUD::MultiSetiUID"i","p_score"GetPlayerScoreplayerid ),    
                
BUD::MultiSetiUID"i","p_kill"UserInfoplayerid ][ p_kill ],
                
BUD::MultiSetiUID"i","p_death" UserInfoplayerid ][ p_death ],
                
BUD::MultiSetiUID"i","p_id" UserInfoplayerid ][ p_id ],
                
BUD::MultiSetiUID"p_password" UserInfoplayerid ][ p_password 
like this?


Re: bud system - Vince - 04.09.2017

Quote:
Originally Posted by crukk11
Посмотреть сообщение
because it easy
Quote:
Originally Posted by Meller
Посмотреть сообщение
fair enough
Lolwut? Apparently it is somehow okay to use something that is garbage as long as it's easy. That in itself is garbage. All these systems that pose as "easy SQL" are all pretty much glorified file systems. These systems produce a significant runtime overhead because of all the string concatenation that is going on behind the scenes and they don't even manage to harness any of the powers or a relational database. I have yet to see one of these includes that provides proper support for sorting, grouping and foreign keys.


Re: bud system - crukk11 - 04.09.2017

Anyone