19.06.2016, 10:07
Quote:
native SQL::GetStringEntry
native SQL::GetStringEntry2 native SQL::GetStringEntryEx native SQL::GetStringEntryEx2 native SQL::GetIntEntryEx native SQL::GetIntEntryEx2 native Float:SQL::GetFloatEntryEx native Float:SQL::GetFloatEntryEx2 native SQL::GetIntEntry native SQL::GetIntEntry2 Those are from your include and seems like the 10 functions you are using to get the data (supporting multiple columns as well), are all mushed up in 1 simple functions "MultiGet". I'm not willing to start a debate, but please point me out the part you are finding hard to understand and I'll explain it to you. If you don't know the basics of English, then this might be hard for some to understand. You have the example script in the post as well that you can check out. |
Code:
SQL::TREAD //Describes a table read handle SQL::MREAD //Describes a multi read handle SQL::MREAD2 //Describes a multi read handle SQL::MTREAD //Describes a multi table read handle
Code:
new handle = SQL::Open(SQL::TREAD, "hotel"); SQL::ReadInt(handle, "id", Hotel[i][id]); SQL::ReadFloat(handle, "h_posx", Hotel[i][h_posx]); SQL::ReadFloat(handle, "h_posy", Hotel[i][h_posy]); SQL::ReadFloat(handle, "h_posz", Hotel[i][h_posz]); SQL::Close(handle);//You must close the handle.
Code:
new handle = SQL::Open(SQL::MTREAD, "houses"); SQL_GetCallback(handle, i) { SQL::ReadInt(handle, "id", Houses[i][id], i); SQL::ReadFloat(handle, "h_posx", Houses[i][h_posx], i); SQL::ReadFloat(handle, "h_posy", Houses[i][h_posy], i); SQL::ReadFloat(handle, "h_posz", Houses[i][h_posz], i); } SQL::Close(handle);//You must close the handle.