23.06.2014, 22:41
Using the script you are using(which obviously appears to be an NGG script(most likely the newest)) I believe they use the function "cache_get_field_content" to load data. For example,
Instead of doing:
cache_get_field_content(row, "ReceivedPrize", szResult, MainPipeline); PlayerInfo[extraid][pReceivedPrize] = strval(szResult);
You can do:
cache_get_field_content(row, "ReceivedPrize", szResult, MainPipeline); pCheckingPrize[playerid] = strval(szResult);
You get the point... Just do it like this and you should be fine.
Then, in the end to send the message(assuming your not going to be using a dialog to show the account's data),
format(string, sizeof(string), "%d %d bla bla bla", pCheckingPrize[playerid]);
SendClientMessage(playerid, -1, string);
Basically, your loading the data and formatting it into a string, which will send to the admin checking the account's stats.
Instead of doing:
cache_get_field_content(row, "ReceivedPrize", szResult, MainPipeline); PlayerInfo[extraid][pReceivedPrize] = strval(szResult);
You can do:
cache_get_field_content(row, "ReceivedPrize", szResult, MainPipeline); pCheckingPrize[playerid] = strval(szResult);
You get the point... Just do it like this and you should be fine.
Then, in the end to send the message(assuming your not going to be using a dialog to show the account's data),
format(string, sizeof(string), "%d %d bla bla bla", pCheckingPrize[playerid]);
SendClientMessage(playerid, -1, string);
Basically, your loading the data and formatting it into a string, which will send to the admin checking the account's stats.