15.01.2011, 23:18
Hi... this question might fail and be obviouse, however I just don't look through it -.-
I just downloaded gstyle's mysql plugin and now want it to replace my old database with a mysql one...
I'm a bit familar with php mysql and I guess that's why I don't look through...
I want to check whether a certain user is registered, without using all those subfunctions... (OnConnectResponse)
so if samp would be like php i'd do something like:
how would it work with samp ? -.-
EDIT: and how to get data later?.. like mysql_result(result, 0, "Score");
I just downloaded gstyle's mysql plugin and now want it to replace my old database with a mysql one...
I'm a bit familar with php mysql and I guess that's why I don't look through...
I want to check whether a certain user is registered, without using all those subfunctions... (OnConnectResponse)
so if samp would be like php i'd do something like:
Код:
format(string, sizeof(string), "SELECT * FROM User WHERE name='%s'", name);
new result = mysql_query(string);
if(mysql_num_rows(result) != 1)
{
Register Dialog...
}
EDIT: and how to get data later?.. like mysql_result(result, 0, "Score");

