MYQL R41-2. MY LITTLE SCRIPT - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MYQL R41-2. MY LITTLE SCRIPT (
/showthread.php?tid=639944)
MYQL R41-2. MY LITTLE SCRIPT -
BrnX - 25.08.2017
Hi, Please write my script mysql r41-2 plugin. Thank You!:
)
Код:
stock IsRegPlateUsed(plate[])
{
mysql_format(conn, mquery, sizeof(mquery), "SELECT id FROM vehicles WHERE RegPlate='%e' LIMIT 1", plate);
new Cache:result = mysql_query(conn, mquery);
if(cache_num_rows() == 0)
{
cache_delete(result);
mysql_format(conn, mquery, sizeof(mquery), "SELECT id FROM fveh WHERE RegPlate='%e' LIMIT 1", plate);
new Cache:result2 = mysql_query(conn, mquery);
if(cache_num_rows() == 0)
{
cache_delete(result2);
for(new i = 0; i < MAX_SERVER_CARS; i++)
{
if(strmatch(RandomDriverData[i][1], plate))
{
return true;
}
}
return false;
}
}
return true;
}
Re: MYQL R41-2. MY LITTLE SCRIPT -
10MIN - 25.08.2017
Use this tutorial:
Updating MySQL R33+ to R40+
Re: MYQL R41-2. MY LITTLE SCRIPT -
BrnX - 25.08.2017
Very nice please, can you help me do it?I do not understand much
Re: MYQL R41-2. MY LITTLE SCRIPT -
BrnX - 25.08.2017
Please.
)..