Race System Does not Work????
#2

Код:
format(query, sizeof(query), "SELECT * FROM `racerotation` WHERE race =  %s ", race);
mysql_function_query(dbHandle, query, true, "OnRaceManuallyLoad", "ds", playerid, race);
Strings need apostrophes around the specifier like this '%s' but you must escape any input by the players. Use mysql_format and '%e' specifier.

In the callbacks you use cache functions, check if there are rows before using these functions. No data will result in error for invalid row indexes.
Reply


Messages In This Thread
Race System Does not Work???? - by PrednizoN - 06.02.2019, 07:05
Re: Race System Does not Work???? - by Calisthenics - 06.02.2019, 08:39
Re: Race System Does not Work???? - by PrednizoN - 06.02.2019, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)