24.12.2015, 00:20
So, I'm working on my registering system.
I want to store the "ID" from the database into the variable pInfo[playerid][ID].
My register system return the following text "New account registered ID: x".
This is what I have to get the ID.
For some reason, it doesn't get the ID. It allways displays 0 as the ID, no matter how many users I have registered.
I want to store the "ID" from the database into the variable pInfo[playerid][ID].
My register system return the following text "New account registered ID: x".
This is what I have to get the ID.
Код:
public OnAccountRegister(playerid) { pInfo[playerid][ID] = cache_get_field_content_int(0, "ID"); printf("New account registered. ID: %d", pInfo[playerid][ID]); return 1; }