[Dangerous!]streamer will cause mysql-plugin R7 out of heap and then lead the sever down
#6

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
That's not what I mean, in Pawn, everytime you call a function, it has to be followed by a semicolon.

It's
pawn Код:
cache_get_field_content(i, "id", GName);
not
pawn Код:
cache_get_field_content(i, "id", GName),
and you don't need "new ID" because ID is defined at the top as a global variable.

Also, enable debugging with mysql_debug(1); in OnGameModeInit, start your script and afterwards, look in mysql_log.txt in your server directory, and see what it says. You might not even be connected to the database.

One more thing in the MYSQLUpdate function, you're using mysql_function_query wrong.
It's supposed to be
pawn Код:
public MYSQLUpdate()
{
    mysql_function_query(DBHandle, "SELECT * FROM `testtable` ORDER BY `id` ", true, "onMYSQLUpdate", "");
    return 1;
}
No No No that's all not the point. My code is all right, you can see the Tutorial https://sampforum.blast.hk/showthread.php?tid=337810

I have testing days before I posted this, I also know the debug, otherwise how did I know when the query stoped?
The point is the streamer and R7! not my code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)