Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // no1
- function PlayerJob( player )
- {
- local name = player.Name;
- local Answer = QuerySQL( db, "SELECT LastJob FROM Job WHERE Name='" + player.Name +"' COLLATE NOCASE" );
- local Job = GetSQLColumnData( Answer, 0 );
- return Job;
- FreeSQLQuery( Answer );
- }
- // no2
- function IncXP( player, text )// XP system
- {
- local name = player.Name;
- local query1 = format( "UPDATE Account SET XP='" + text +"' WHERE Name='" + player.Name.tolower() +"'");
- QuerySQL( db, query1 );
- }
- // no3
- function PlayerPhone( player )
- {
- local q = QuerySQL( db, "SELECT Phone FROM Pinfo WHERE Name='" + player.Name + "'" );
- if ( GetSQLColumnData(q, 0 ) == "yes" )
- status[ player.ID ].Phone = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement