06.01.2019, 03:42
Hello there, I am creating a system to save vehicles in the server, I am using DB as SQLite, together with the SQLite DB Browser to create and configure.
I'm new, I'm still learning the functionality of this DB, most of the tutorials are not in my native language.
So ... I created a command to see if the table is updated, but simply nothing happens.
CMD:
And i have this other things
Someone can help me?
I'm new, I'm still learning the functionality of this DB, most of the tutorials are not in my native language.
So ... I created a command to see if the table is updated, but simply nothing happens.
CMD:
PHP Code:
ACMD:instab[1](playerid, params[])
{
new Query[250];
new result;
format(Query, sizeof(Query), "INSERT INTO `Veнculos` (`VOwner`) VALUES ('%s')", PlayerName(playerid));
db_query(pCars, Query);
SendClientMessage(playerid, DebugColor, "Done");
return 1;
}
PHP Code:
new DB:pCars;
public OnGameModeInit()
{
pCars = db_open("pCars.db");
}
public OnGameModeExit()
{
db_close(pCars);
}