Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward GetNextFurnitureID();
- public GetNextFurnitureID()
- {
- new ottquery[128];
- for(new x = 1; x < MAX_FURNITURES; x++)
- {
- mysql_format(mysql, ottquery, sizeof(ottquery), "SELECT * FROM `seb-furniture` WHERE `fID` = %d", x);
- mysql_tquery(mysql, ottquery, "DoesFExist", "i", x);
- }
- return 1;
- }
- forward DoesFExist(fID);
- public DoesFExist(fID)
- {
- new rows, fields,string[128];
- cache_get_data(rows, fields, mysql);
- if(rows)
- {
- }
- if(!rows)
- {
- format(string,sizeof(string),"%d DOES NOT EXIST",fID);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- return fID;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment