daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock ReturnPlayerMessageID( playerid, messageslot )
  2. {
  3.     new Query[77],messageID = 0;
  4.     format(Query,sizeof(Query),"SELECT NULL FROM `messages` WHERE `messagereciever` = '%s'",GetName(playerid));
  5.     mysql_query(Query);
  6.     mysql_store_result();
  7.     while(mysql_fetch_row(Query))
  8.     {
  9.         messageID++;
  10.         if(messageID == messageslot)
  11.         {
  12.             return messageID;
  13.         }
  14.     }
  15.     return -1;
  16. }
RAW Paste Data
Top