14.04.2011, 16:40
First of all, thanks for answering!
When i add this i get one error more:
The whole stuff is this
When i add this i get one error more:
Quote:
error 025: function heading differs from prototype error 017: undefined symbol "resultid" |
Quote:
public OnQueryFinish(query[], index, extraid, connectionHandle) { switch(resultid) { case MYSQL_SAVE_VEHICLES: { } case MYSQL_SAVE_USERS: { } case MYSQL_LOAD_OOC_ROOMS: { mysql_store_result(); if(mysql_num_rows() == 0) { print("No chatrooms in the database! Creating OOC Rooms!"); for(new i = 0; i < TOTAL_OOCROOMS; i ++ ) { mysql_query("INSERT INTO OOCRooms (Owned, Locked, Owner, Password, Owner) VALUES(0,0,'None','None', 'None')"); printf("Created OOC room %i | Data: Owned: False, Locked: False, Owner: None, Password: None", i); } } |