MySQL Plugin R7 - Non Threaded?
#1

I want to upgrade my script to use the R7 MySQL plugin (https://sampforum.blast.hk/showthread.php?tid=56564) But as it only supports threaded, i'm unsure how best to re-write the following function:

pawn Код:
stock getNewBankAccount(balance) {
    new tenpNewBankNumber = 0, query[300];
    format(query, sizeof(query), "INSERT INTO bankAccounts (accountBalance) VALUES(%i)", balance);
    mysql_query(query);
    tenpNewBankNumber = mysql_insert_id();
    mysql_free_result();
    return tenpNewBankNumber;
}
pawn Код:
new bankAccount = getNewBankAccount(4000);
Any ideas?

Thanks, Grim.
Reply
#2

Read this: https://sampforum.blast.hk/showthread.php?tid=337810
Reply
#3

Quote:
Originally Posted by HardRock
Посмотреть сообщение
I have already read that, sadly it does not show any way to turn my above code into threaded, as it must all happen within 1 function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)