Advertisement
Kyosaur

Sscanf debug info (For Y_Less)

Aug 15th, 2011
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1. // enum/array
  2.  
  3. enum pInfo
  4. {
  5.     pSQLid,
  6.     pUsername[24],
  7.     pPassword[129],
  8.     pIP[16],
  9.     pAge,
  10.     pSex,
  11.     pMoney,
  12.     pBank,
  13.     pSkin,
  14.     Float:pPos_x,
  15.     Float:pPos_y,
  16.     Float:pPos_z,
  17.     pTutorial,
  18.     pLevel,
  19.     pAdmin,
  20.     pMuted,
  21.     pFaction,
  22.     pFactionRank
  23. }
  24. new PlayerInfo[MAX_PLAYERS][pInfo];
  25.  
  26.  
  27.  
  28. //Data from mysql
  29.  
  30. 1|Robert_Jordan|74DFC2B27ACFA364DA55F93A5CAEE29CCAD3557247EDA238831B3E9BD931B01D77FE994E4F12B9D4CFA92A124461D2065197D8CF7F33FC88566DA2DB2A4D6EAE|174.0.178.17|20|1|0|0|29|1742.81|-1860.83|13.5783|2|0|0|0|0|0
  31.  
  32.  
  33. //Sscanf statement
  34.  
  35. if(!sscanf(string, "e<p<|>is[24]s[129]s[16]iiiiifffiiiiii>", PlayerInfo[playerid]))
  36.  
  37.  
  38. //The coordinate values parsed with sscanf
  39.  
  40. [06:19:35] 29 ./,),(-*,(.(((((( 1742.810058 -1860.829956
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement