Advertisement
KingOfVC

Gg

Oct 21st, 2014
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // no1
  2. function PlayerJob( player )
  3. {
  4. local name = player.Name;
  5. local Answer = QuerySQL( db, "SELECT LastJob FROM Job WHERE Name='" + player.Name +"' COLLATE NOCASE" );
  6. local Job = GetSQLColumnData( Answer, 0 );
  7. return Job;
  8. FreeSQLQuery( Answer );
  9. }
  10.  
  11. // no2
  12. function IncXP( player, text )// XP system
  13. {
  14. local name = player.Name;
  15. local query1 = format( "UPDATE Account SET XP='" + text +"' WHERE Name='" + player.Name.tolower() +"'");
  16. QuerySQL( db, query1 );
  17. }
  18.  
  19. // no3
  20. function PlayerPhone( player )
  21. {
  22. local q = QuerySQL( db, "SELECT Phone FROM Pinfo WHERE Name='" + player.Name + "'" );
  23. if ( GetSQLColumnData(q, 0 ) == "yes" )
  24. status[ player.ID ].Phone = true;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement