5 error's.
#1

Hello can someone help me about these errors? :]
GM:
Код:
			/*  ---------------- SCRIPT REVISION ----------------- */

// Do not forget to change this everytime you commit - it's mandatory!

#define SERVER_GM_TEXT "UG:RP v1.7"

#include <a_samp>
#include <a_mysql>	
#include <streamer>
#include <yom_buttons>		
#include <ZCMD>
#include <sscanf2>
#include <foreach>
#include <YSI\y_timers>
#include <YSI\y_utils>
#if defined SOCKET_ENABLED
#include <socket>
#endif
#include "./includes/defines.pwn"
#include "./includes/enums.pwn"
#include "./includes/variables.pwn"
#include "./includes/timers.pwn"
#include "./includes/functions.pwn"
#include "./includes/commands.pwn"
#include "./includes/mysql.pwn"
#include "./includes/OnPlayerLoad.pwn"
#include "./includes/callbacks.pwn"
#include "./includes/textdraws.pwn"
#include "./includes/streamer.pwn"
#include "./includes/OnDialogResponse.pwn"

main() {}

public OnGameModeInit()
{
	print("Preparing the gamemode, please wait...");
	g_mysql_Init();
	return 1;
}
Errors:
Код:
./includes/mysql.pwn(174) : error 001: expected token: "-string end-", but found "-identifier-"
./includes/mysql.pwn(179) : error 020: invalid symbol name ""
./includes/mysql.pwn(179) : error 029: invalid expression, assumed zero
./includes/mysql.pwn(179) : warning 215: expression has no effect
./includes/mysql.pwn(179) : error 001: expected token: ";", but found "continue"
./includes/mysql.pwn(179) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

Line ?
Reply
#3

NGRP script.
Don`t change anything in mysql.pwn....
If you want to change the DB, Name and Host of DB, mysql.cfg is located in scriptfiles...change that with your info.
Reply
#4

Quote:
Originally Posted by TFreemen
Посмотреть сообщение
NGRP script.
Don`t change anything in mysql.pwn....
If you want to change the DB, Name and Host of DB, mysql.cfg is located in scriptfiles...change that with your info.
Its not ngrp script and thank you so much, i shouldnt edited any shit in mysql.pwn just in mysql.cfg
Reply
#5

Quote:
Originally Posted by Pr0GreSiVe
Посмотреть сообщение
Its not ngrp script and thank you so much, i shouldnt edited any shit in mysql.pwn just in mysql.cfg
No problemo.
And it is NGRP script :P
I have that and it looks the same:
Код:
			/*  ---------------- SCRIPT REVISION ----------------- */

    // Do not forget to change this everytime you commit - it's mandatory!

    #define SERVER_GM_TEXT "NG:RP V2.4.140"

    #include <a_samp>
    #include <a_mysql>	
    #include <streamer>
    #include <yom_buttons>		
    #include <ZCMD>
    #include <sscanf2>
    #include <foreach>
    #include <YSI\y_timers>
    #include <YSI\y_utils>
    #if defined SOCKET_ENABLED
    #include <socket>
    #endif
    #include "./includes/defines.pwn"
    #include "./includes/enums.pwn"
    #include "./includes/variables.pwn"
    #include "./includes/timers.pwn"
    #include "./includes/functions.pwn"
    #include "./includes/commands.pwn"
    #include "./includes/mysql.pwn"
    #include "./includes/OnPlayerLoad.pwn"
    #include "./includes/callbacks.pwn"
    #include "./includes/textdraws.pwn"
    #include "./includes/streamer.pwn"
    #include "./includes/OnDialogResponse.pwn"

    main() {}

    public OnGameModeInit()
    {
	print("Preparing the gamemode, please wait...");
	g_mysql_Init();
	return 1;
    }

    public OnGameModeExit()
    {
        g_mysql_Exit();
	return 1;
    }
Reply
#6

Quote:
Originally Posted by TFreemen
Посмотреть сообщение
No problemo.
And it is NGRP script :P
I have that and it looks the same:
Код:
			/*  ---------------- SCRIPT REVISION ----------------- */

    // Do not forget to change this everytime you commit - it's mandatory!

    #define SERVER_GM_TEXT "NG:RP V2.4.140"

    #include <a_samp>
    #include <a_mysql>	
    #include <streamer>
    #include <yom_buttons>		
    #include <ZCMD>
    #include <sscanf2>
    #include <foreach>
    #include <YSI\y_timers>
    #include <YSI\y_utils>
    #if defined SOCKET_ENABLED
    #include <socket>
    #endif
    #include "./includes/defines.pwn"
    #include "./includes/enums.pwn"
    #include "./includes/variables.pwn"
    #include "./includes/timers.pwn"
    #include "./includes/functions.pwn"
    #include "./includes/commands.pwn"
    #include "./includes/mysql.pwn"
    #include "./includes/OnPlayerLoad.pwn"
    #include "./includes/callbacks.pwn"
    #include "./includes/textdraws.pwn"
    #include "./includes/streamer.pwn"
    #include "./includes/OnDialogResponse.pwn"

    main() {}

    public OnGameModeInit()
    {
	print("Preparing the gamemode, please wait...");
	g_mysql_Init();
	return 1;
    }

    public OnGameModeExit()
    {
        g_mysql_Exit();
	return 1;
    }
Can you help me with something? How to disable auto-shutdown option when i run samp-server.exe?
Reply
#7

Post the latest message from server.log.
Reply
#8

Quote:
Originally Posted by TFreemen
Посмотреть сообщение
Post the latest message from server.log.
Just in case both. HELP :/
[ GM ]
Код:
			/*  ---------------- SCRIPT REVISION ----------------- */

// Do not forget to change this everytime you commit - it's mandatory!

#define SERVER_GM_TEXT "****:**.**"

#include <a_samp>
#include <a_mysql>	
#include <streamer>
#include <yom_buttons>		
#include <ZCMD>
#include <sscanf2>
#include <foreach>
#include <YSI\y_timers>
#include <YSI\y_utils>
#if defined SOCKET_ENABLED
#include <socket>
#endif
#include "./includes/defines.pwn"
#include "./includes/enums.pwn"
#include "./includes/variables.pwn"
#include "./includes/timers.pwn"
#include "./includes/functions.pwn"
#include "./includes/commands.pwn"
#include "./includes/mysql.pwn"
#include "./includes/OnPlayerLoad.pwn"
#include "./includes/callbacks.pwn"
#include "./includes/textdraws.pwn"
#include "./includes/streamer.pwn"
#include "./includes/OnDialogResponse.pwn"

main() {}

public OnGameModeInit()
{
	print("Preparing the gamemode, please wait...");
	g_mysql_Init();
	return 1;
}
[ Server log ]
Код:
SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[21:53:09] 
[21:53:09] Server Plugins
[21:53:09] --------------
[21:53:09]  Loading plugin: mysql
[21:53:09]  >> plugin.mysql: R33 successfully loaded.
[21:53:09]   Loaded.
[21:53:09]  Loading plugin: Whirlpool
[21:53:09]  
[21:53:09]  ==================
[21:53:09]  
[21:53:09]   Whirlpool loaded
[21:53:09]  
[21:53:09]  ==================
[21:53:09]  
[21:53:09]   Loaded.
[21:53:09]  Loading plugin: streamer
[21:53:09] 

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

[21:53:09]   Loaded.
[21:53:09]  Loading plugin: sscanf
[21:53:09] 

[21:53:09]  ===============================

[21:53:09]       sscanf plugin loaded.     

[21:53:09]    © 2009 Alex "******" Cole

[21:53:09]    0.3d-R2 500 Players "dnee"

[21:53:09]  ===============================

[21:53:09]   Loaded.
[21:53:09]  Loading plugin: nativechecker
[21:53:09]   Loaded.
[21:53:09]  Loaded 5 plugins.

[21:53:09] 
[21:53:09] Filterscripts
[21:53:09] ---------------
[21:53:09]   Loading filterscript 'yom_buttons.amx'...
[21:53:09]   Loading filterscript 'vactions.amx'...
[21:53:09]   Loading filterscript 'Server.amx'...
[21:53:09]   Loading filterscript 'PlayerInteriors.amx'...
[21:53:09]   Loading filterscript 'PlayerExteriors.amx'...
[21:53:09]   Loaded 5 filterscripts.

[21:53:11] OnGameo
[21:53:11]  
[21:53:11]  
[21:53:11]  
[21:53:11]  ======================================= 
[21:53:11]  |                                     | 
[21:53:11]  |        YSI version 3.09.0684        | 
[21:53:11]  |        By Alex "******" Cole        | 
[21:53:11]  |                                     | 
[21:53:11]  ======================================= 
[21:53:11]  
[21:53:11]  
[21:53:11]  
[21:53:11] Preparing the gamemode, please wait...
[21:53:12] [MySQL] (Main Pipelines) Connecting to 127.0.0.1...
[21:53:12] [MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host 127.0.0.1 - DB: sa-mp - User: root
[21:53:12] [MySQL] Note: Make sure that you have provided the correct connection credentials.
[21:53:12] [MySQL] Error number: 1045
[21:53:12] [Dynamic Giftbox] Loading the Dynamic Giftbox...
[21:53:12] [LoadCrates] Load Query Sent
[21:53:12] [LoadHouses] Loading data from database...
[21:53:12] [LoadDynamicDoors] Loading data from database...
[21:53:12] [LoadDynamicMapIcons] Loading data from database...
[21:53:12] [LoadMailboxes] Loading data from database...
[21:53:12] [LoadBusinesses] Loading data from database...
[21:53:12] [LoadAuctions] Loading data from database...
[21:53:12] [LoadTxtLabels] Loading data from database...
[21:53:12] [LoadPlants] Loading data from database...
[21:53:12] [SpeedCameras] Loading data from database...
[21:53:12] [LoadPayNSprays] Loading data from database...
[21:53:12] [LoadArrestPoints] Loading data from database...
[21:53:12] [LoadImpoundPoints] Loading data from database...
[21:53:12] [LoadRelayForLifeTeams] Loading data from database...
[21:53:12] [LoadBusinessSales] Loading data from database...
[21:53:13] [LoadTurfWars] 65 turfs loaded.
[21:53:13] [LoadPaintballArenas] 10 paintball arenas loaded.
[21:53:13] [LoadEventPoints] 0 event points loaded.
[21:53:13] [LoadGates] Loading data from database...
[21:53:13] [LoadElevatorStuff] 20 floors loaded.
[21:53:13] [LoadFamilies] Loading data from database...
[21:53:13] [LoadFamilyPoints] Loading Family Points from the database, please wait...
[21:53:13] [MiscLoad] Misc Loaded
[21:53:13] Resetting news...
[21:53:13] Resetting default server variables..
[21:53:13] Adjusted the server time...
[21:53:13] [Streamer] Loading Dynamic Static Vehicles...
[21:53:13] [Streamer] Dynamic Static Vehicles has been loaded.
[21:53:13] [Streamer] Loading Dynamic Pickups...
[21:53:13] [Streamer] Dynamic Pickups has been loaded.
[21:53:13] [Streamer] Loading 3D Text Labels...
[21:53:13] [Streamer] Dynamic 3D Text Labels has been loaded.
[21:53:13] [Streamer] Loading Dynamic Buttons...
[21:53:13] [Streamer] Dynamic Buttons has been loaded.
[21:53:13] [Streamer] Loading Dynamic Objects...
[21:53:13] [Streamer] Dynamic Objects has been loaded.
[21:53:13] [Textdraws] Loading Textdraws...
[21:53:13] [Textdraws] Loaded textdraws.
[21:53:13] [Dynamic Groups] Loading Dynamic Groups...
[21:53:13] [Dynamic Groups] Loading Dynamic Groups Vehicles...
[21:53:13] 
-------------------------------------------
[21:53:13] ************

[21:53:13] Copyright © *******, LLC (2012-2013)
[21:53:13] All Rights Reserved
[21:53:13] -------------------------------------------

[21:53:13] Successfully initiated the gamemode...
[21:53:13] Number of vehicle models: 29
[21:53:13] --- Server Shutting Down.
[21:53:14] plugin.mysql: Unloading plugin...
Reply
#9

In your Script Folder you`ll find a file .sql....mine`s ngrp_beta.sql.
That`s the database....
You first have to host that database in your PC or on a host machine.

You can use wamp server to create a database and navicat to upload the database because it have 25MB and it`s too large to upload it with browser.
Reply
#10

Quote:
Originally Posted by TFreemen
Посмотреть сообщение
In your Script Folder you`ll find a file .sql....mine`s ngrp_beta.sql.
That`s the database....
You first have to host that database in your PC or on a host machine.

You can use wamp server to create a database and navicat to upload the database because it have 25MB and it`s too large to upload it with browser.
++++2 REP THE BEST GUY I EVER SEEN IN THIS FORUM BIG RESPECT BRO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)