Guest User

Untitled

a guest
Jan 8th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. case DIALOG_CHOIX_PERSO:
  3. {
  4.  
  5. new query[600];
  6.  
  7. format(query, sizeof(query), "SELECT * FROM `server_characters` WHERE id=%d", AccountInfo[playerid][Account_ID]);
  8. mysql_tquery(dbhandle, query, "Load_Character", "i", playerid);
  9.  
  10. }
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. /*---------------------------------------------------------------------------------*/
  19. forward Load_Character(playerid);
  20. public Load_Character(playerid)
  21. {
  22. new rows,
  23. fields,
  24. string[600];
  25.  
  26. cache_get_data(rows, fields);
  27.  
  28. if(rows)
  29. {
  30. new cid = cache_get_field_content_int(0, "id");
  31.  
  32. new name[64];
  33. cache_get_field_content(0, "username", name);
  34.  
  35. //SetPlayerName(playerid, PlayerInfo[playerid][p_Username]);
  36.  
  37. format(string, sizeof(string), "Votre personnage (n°%d) avec le pseudo %s", cid, name);
  38. SendClientMessage(playerid, -1, string);
  39. SendClientMessage(playerid, -1, "____________________________________");
  40.  
  41. }
  42.  
  43. return 1;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment