Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MacAddAlias(player)
- {
- local q = QuerySQL( db, "SELECT * FROM UIDAlias WHERE UID='" + player.UniqueID + "'" );
- if ( GetSQLColumnData( q,0 ) == player.UniqueID )
- {
- if ( GetSQLColumnData( q,1 ).find(player.Name) == null )
- {
- local Fk = GetSQLColumnData( q,1 )
- local mose = Fk + ", " + player.Name
- QuerySQL(db, "UPDATE UIDAlias SET Name='" + mose + "' WHERE UID= '" + player.UniqueID + "'");
- }
- }
- else
- {
- QuerySQL(db,"INSERT INTO UIDAlias VALUES('" + player.UniqueID + "', '" + player.Name + "')");
- }
- }
- QuerySQL(db, "CREATE TABLE IF NOT EXISTS UIDAlias ( UID VARCHAR(255), Name VARCHAR(25) ) ");
Add Comment
Please, Sign In to add comment