SQLite wont create a table
#1

Under OnGameModeInit:

pawn Код:
db_query(survival, "CREATE TABLE IF NOT EXISTS `ACCOUNTS` (`NAME`, `PASSWORD`, `IP`, `LEVEL`, `CASH`, `ADMINLEVEL`, `HOURS`, `JOB`, `BANNED`, `SPAWN`, `BANK`, `FOOD`, `WATER`, `SKIN`, `FACTION`, `FACTION_LEVEL`, `VEHICLE1`, `VEHICLE2`, `VEHICLE3`, `VEHICLE4`, VEHICLE5`)");
it doesnt create table if not exists!
Reply
#2

`VEHICLE5`
Reply
#3

EDIT: Bad reply > don't use this :P.

Make sure the array for the "survival" is large enough.
Reply
#4

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
Make sure the array for the "survival" is large enough.
You should see the wiki before responding: https://sampwiki.blast.hk/wiki/Db_query
Reply
#5

Quote:
Originally Posted by -Prodigy-
Посмотреть сообщение
You should see the wiki before responding: https://sampwiki.blast.hk/wiki/Db_query
Ah, my mistake, sorry.
Reply
#6

Quote:
Originally Posted by Jefff
Посмотреть сообщение
`VEHICLE5`
Thanks for pointing that out, it didnt fix it though D:
Reply
#7

fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)