Never login!
#1

alright i compiled the Gamemode with no errors and uploaded the DB and edited mysql.cfg now when i get ig it doesn't show me login dialogue what to do?



MySQL.cfg
Quote:

HOST=localhost
DB=ngrp_main
USER=root
PASS=
SERVER=1
DEBUG=1

Server.cfg
Quote:

lanmode 0
rcon_password your_rcon_pass
maxplayers 500
port 7777
hostname Next Generation Gaming
gamemode0 NGRP
filterscripts yom_buttons gcustom
announce 1
query 1
plugins streamer sscanf mysql Whirlpool
weburl samp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]

Reply
#2

Do you get any error when connecting to the database? (mysql_errno). Check mysql_log for errors on the queries.
Reply
#3

Quote:
Originally Posted by CuervO
Посмотреть сообщение
Do you get any error when connecting to the database? (mysql_errno). Check mysql_log for errors on the queries.
it says successfuly connected to DB in server_log.txt

server_log.txt

Quote:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[15:02:43]
[15:02:43] Server Plugins
[15:02:43] --------------
[15:02:43] Loading plugin: streamer
[15:02:43]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[15:02:43] Loaded.
[15:02:43] Loading plugin: sscanf
[15:02:43]

[15:02:43] ===============================

[15:02:43] sscanf plugin loaded.

[15:02:43] © 2009 Alex "******" Cole

[15:02:43] 0.3d-R2 500 Players "dnee"

[15:02:43] ===============================

[15:02:43] Loaded.
[15:02:43] Loading plugin: mysql
[15:02:43] >> plugin.mysql: R37 successfully loaded.
[15:02:43] Loaded.
[15:02:43] Loading plugin: Whirlpool
[15:02:43]
[15:02:43] ==================
[15:02:43]
[15:02:43] Whirlpool loaded
[15:02:43]
[15:02:43] ==================
[15:02:43]
[15:02:43] Loaded.
[15:02:43] Loaded 4 plugins.

[15:02:43]
[15:02:43] Ban list
[15:02:43] --------
[15:02:43] Loaded: samp.ban
[15:02:43]
[15:02:43]
[15:02:43] Filterscripts
[15:02:43] ---------------
[15:02:43] Loading filterscript 'yom_buttons.amx'...
[15:02:43] Loading filterscript 'gcustom.amx'...
[15:02:44] Loaded 2 filterscripts.

[15:02:44]
[15:02:44] =======================================
[15:02:44] | |
[15:02:44] | YSI version 3.01.0002 |
[15:02:44] | By Alex "******" Cole |
[15:02:44] | |
[15:02:44] =======================================
[15:02:44]
[15:02:44] Preparing the gamemode, please wait...
[15:02:44] [MySQL] (Main Pipelines) Connecting to localhost...
[15:02:44] [MySQL] (MainPipeline) Connection successful toward MySQL Database Server!
[15:02:44] [Dynamic Giftbox] Loading the Dynamic Giftbox...
[15:02:44] [LoadCrates] Load Query Sent
[15:02:44] [LoadHouses] Loading data from database...
[15:02:44] [LoadDynamicDoors] Loading data from database...
[15:02:44] [LoadDynamicMapIcons] Loading data from database...
[15:02:44] [LoadMailboxes] Loading data from database...
[15:02:44] [LoadBusinesses] Loading data from database...
[15:02:44] [LoadAuctions] Loading data from database...
[15:02:44] [LoadTxtLabels] Loading data from database...
[15:02:44] [LoadPlants] Loading data from database...
[15:02:44] [SpeedCameras] Loading data from database...
[15:02:44] [LoadPayNSprays] Loading data from database...
[15:02:44] [LoadArrestPoints] Loading data from database...
[15:02:44] [LoadImpoundPoints] Loading data from database...
[15:02:44] [LoadRelayForLifeTeams] Loading data from database...
[15:02:44] [LoadBusinessSales] Loading data from database...
[15:02:44] -mSelection- WARNING: Failed to load list: "ToyList.txt"
[15:02:44] -mSelection- WARNING: Failed to load list: "CarList.txt"
[15:02:44] -mSelection- WARNING: Failed to load list: "PlaneList.txt"
[15:02:44] -mSelection- WARNING: Failed to load list: "BoatList.txt"
[15:02:44] -mSelection- WARNING: Failed to load list: "ToyList.txt"
[15:02:44] -mSelection- WARNING: Failed to load list: "CarList.txt"
[15:02:44] -mSelection- WARNING: Failed to load list: "RestrictedCarList.txt"
[15:02:44] -mSelection- WARNING: Failed to load list: "SkinList.txt"
[15:02:44] [LoadTurfWars] 0 turfs loaded.
[15:02:44] [LoadPaintballArenas] 10 paintball arenas loaded.
[15:02:44] [LoadGates] Loading data from database...
[15:02:44] [LoadFamilies] Loading data from database...
[15:02:44] [LoadFamilyPoints] Loading Family Points from the database, please wait...
[15:02:44] [MiscLoad] Misc Loaded
[15:02:44] Resetting news...
[15:02:44] Resetting default server variables..
[15:02:44] Adjusted the server time...
[15:02:44] [Streamer] Loading Dynamic Static Vehicles...
[15:02:44] [Streamer] Dynamic Static Vehicles has been loaded.
[15:02:44] [Streamer] Loading Dynamic Pickups...
[15:02:44] [Streamer] Dynamic Pickups has been loaded.
[15:02:44] [Streamer] Loading 3D Text Labels...
[15:02:44] [Streamer] Dynamic 3D Text Labels has been loaded.
[15:02:44] [Streamer] Loading Dynamic Buttons...
[15:02:44] [Streamer] Dynamic Buttons has been loaded.
[15:02:44] [Streamer] Loading Dynamic Objects...
[15:02:44] [Streamer] Dynamic Objects has been loaded.
[15:02:44] [Textdraws] Loading Textdraws...
[15:02:44] [Textdraws] Loaded textdraws.
[15:02:44] [Dynamic Groups] Loading Dynamic Groups...
[15:02:44] [Dynamic Groups] Loading Dynamic Groups Vehicles...
[15:02:44]
-------------------------------------------
[15:02:44] Next Generation Gaming

[15:02:44] Copyright © Next Generation Gaming, LLC (2012-2013)
[15:02:44] All Rights Reserved
[15:02:44] -------------------------------------------

[15:02:44] Successfully initiated the gamemode...
[15:02:44] Number of vehicle models: 29
[15:02:44] [LoadCrates] Loading Crates Finished
[15:02:44] [LoadDynamicDoors] Failed to load any doors.
[15:02:44] [LoadDynamicMapIcons] Failed to load any map icons.
[15:02:44] [LoadMailboxes] 20 mailboxes rehashed/loaded.
[15:02:45]
[15:02:45] ==========================================
[15:02:45] | |
[15:02:45] | A new version (v3.09.0684) of YSI is |
[15:02:45] | available from: |
[15:02:45] | |
[15:02:45] | www.y-less.com/YSI/YSI_1.0.zip |
[15:02:45] | |
[15:02:45] | Changelog: |
[15:02:45] | |
[15:02:45] | 3.09.0684: |
[15:02:45] | |
[15:02:45] | Reverted to old download location. |
[15:02:45] | Improved (and fixed) version checks; |
[15:02:45] | added y_bitmap, y_areas, y_races, |
[15:02:45] | y_zonenames, better documentation; |
[15:02:45] | MANY other bug fixes - see the github |
[15:02:45] | repository for more details: |
[15:02:45] | |
[15:02:45] ==========================================
[15:02:45]

MySQL_log.txt

Quote:

[14:59:23] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1054) Unknown column 'GiftCode' in 'field list'
[14:59:23] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1146) Table 'ngrp_main.giftbox' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadHouses] - (error #1054) Unknown column 'h.OwnerID' in 'on clause'
[14:59:23] [ERROR] CMySQLQuery::Execute[BusinessesLoadQueryFinish] - (error #1054) Unknown column 'b.OwnerID' in 'on clause'
[14:59:23] [ERROR] CMySQLQuery::Execute[AuctionLoadQuery] - (error #1146) Table 'ngrp_main.auctions' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadTxtLabels] - (error #1146) Table 'ngrp_main.text_labels' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[PlantsLoadQuery] - (error #1146) Table 'ngrp_main.plants' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadSpeedCameras] - (error #1146) Table 'ngrp_main.speed_cameras' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadPayNSprays] - (error #1146) Table 'ngrp_main.paynsprays' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadArrestPoints] - (error #1146) Table 'ngrp_main.arrestpoints' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadImpoundPoints] - (error #1146) Table 'ngrp_main.impoundpoints' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadRFLTeams] - (error #1146) Table 'ngrp_main.rflteams' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1146) Table 'ngrp_main.sales' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1146) Table 'ngrp_main.shopprices' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[LoadBusinessesSaless] - (error #1146) Table 'ngrp_main.businesssales' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[OnLoadPoints] - (error #1146) Table 'ngrp_main.points' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[CitizenQueryFinish] - (error #1054) Unknown column 'Nation' in 'where clause'
[14:59:23] [ERROR] CMySQLQuery::Execute[Group_QueryFinish] - (error #1146) Table 'ngrp_main.lockers' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[Group_QueryFinish] - (error #1146) Table 'ngrp_main.jurisdictions' doesn't exist
[14:59:23] [ERROR] CMySQLQuery::Execute[DynVeh_QueryFinish] - (error #1146) Table 'ngrp_main.groupvehs' doesn't exist

Reply
#4

You don't have the table structure in the SQL DB. You need to run a .sql script or manually create the tables requiered by the script.
Reply
#5

Quote:
Originally Posted by CuervO
Посмотреть сообщение
You don't have the table structure in the SQL DB. You need to run a .sql script or manually create the tables required by the script.
can you tell me the required tables by script?
Reply
#6

Tables missing:

Код:
'ngrp_main.giftbox'
Код:
'ngrp_main.auctions'
Код:
'ngrp_main.text_labels'
Код:
'ngrp_main.plants'
Код:
'ngrp_main.speed_cameras'
Код:
'ngrp_main.paynsprays'
Код:
'ngrp_main.arrestpoints'
Код:
'ngrp_main.impoundpoints'
Код:
'ngrp_main.rflteams'
Код:
'ngrp_main.sales'
Код:
'ngrp_main.shopprices'
Код:
'ngrp_main.businesssales'
Код:
'ngrp_main.points'
Код:
'ngrp_main.lockers'
Код:
'ngrp_main.jurisdictions'
Код:
'ngrp_main.groupvehs'
Reply
#7

after adding tables got these left

Quote:

[15:25:10] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1054) Unknown column 'GiftCode' in 'field list'
[15:25:10] [ERROR] CMySQLQuery::Execute[OnLoadHouses] - (error #1054) Unknown column 'h.OwnerID' in 'on clause'
[15:25:10] [ERROR] CMySQLQuery::Execute[BusinessesLoadQueryFinish] - (error #1054) Unknown column 'b.OwnerID' in 'on clause'
[15:25:10] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1054) Unknown column 'Month' in 'where clause'
[15:25:10] [ERROR] CMySQLQuery::Execute[CitizenQueryFinish] - (error #1054) Unknown column 'Nation' in 'where clause'
[15:25:10] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (error #1054) Unknown column 'SpawnedID' in 'field list'

Reply
#8

Tables are a combination of both rows and columns where data is stored in a logical way, optimized for them to work in a conjunct as a whole.

You can't possibly guess all the tables and columns needed from the whole script unless you go line by line checking which tables and columns are loaded/updated/inserted, etc.

I recommend not using a SQL script if they don't provide the table structure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)