MYSQL callback problem
#1

Hey there,
I got a business system based on MYSQL, however I can't seem to get one thing working
Код:
forward OnBizzCreate(playerid,name[]);
public OnBizzCreate(playerid,name[])
{
...
}
            new Na[30]="BlaBla";
            mysql_format(mysql,query, sizeof(query), "INSERT INTO bla bla bla"bla,bla); // Not important
            mysql_tquery(mysql, query, "OnBizzCreate", "ds[30]", playerid,Na);
If I use the top one I get "callback parameter count does not match format specifier length", However I figured I should try and remove the string from my callback (the forward, actual callback and this line top.)
Код:
forward OnBizzCreate(playerid);
public OnBizzCreate(playerid)
{
...
}
            mysql_format(mysql,query, sizeof(query), "INSERT INTO bla bla bla"bla,bla); // Not important
            mysql_tquery(mysql, query, "OnBizzCreate", "d", playerid);
I don't think the problem is in rest of my code but those specified lines. Don't know how to make it work, is it simply not possible or am I doing something wrong ?
Btw before asking me to search first, this apparently a duckload of issues causes this error, I checked ~30-40 topics and none of them had same issue as I have.
Reply
#2

Use "ds"
Reply
#3

Meh, that was simple, didn't expect it to be fixed with that xD
Thanks for teaching me, I probably should script a bit less non-stop so I won't miss simple stuff !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)