"./include/enums.pwn"
#1

Hello there!

So, I've bought a script, and it isn't working, it's showing me that shit I don't know how to fix it! It's mad!
http://prntscr.com/3lj0nj Here's a picture of my include folder, and here's the picture of the error: http://prntscr.com/3lj0aw

Please help me, I need to get it running as soon as possible!
Reply
#2

It's "../" and not "./"

For example:
pawn Code:
#include "../include/enums.pwn"
Do the same for the rest.
Reply
#3

PHP Code:
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/functions.pwn(3135) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(21508) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(21537) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(21685) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(21710) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(22978) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23082) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23107) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23127) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23154) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23255) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23293) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23492) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(23493) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(25312) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(26596) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(29693) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(31302) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(33564) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(33565) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(33590) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(33591) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(36441) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(36442) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(36572) : error 017undefined symbol "mysql_escape_string"
C:\Users\Andrej\Desktop\Secret\pawno\include\../includes/commands.pwn(37336) : error 017undefined symbol "mysql_escape_string"

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Reply
#4

Are you sure the mysql version of the include you use has mysql_escape_string function defined?
Reply
#5

Quote:
Originally Posted by Konstantinos
View Post
Are you sure the mysql version of the include you use has mysql_escape_string function defined?
I don't have a clue, The script was given to me. What version should I use? and How, also, thank you so much for replies!
Reply
#6

Me neither without knowing the mysql plugin and version. Find the include for the mysql in pawno\include folder and open it. It may be written which one it is.
Reply
#7

On include it is: * MySQL plugin R26
and there's the pwn code of the mysql.pwn: http://pastebin.com/V5MNai6x
Reply
#8

In R26 by BlueG the function mysql_escape_string doesn't exist but there is mysql_real_escape_string:
pawn Code:
native mysql_real_escape_string(const source[], destination[], connectionHandle = 1, max_len=sizeof(destination));
Reply
#9

Quote:
Originally Posted by Konstantinos
View Post
In R26 by BlueG the function mysql_escape_string doesn't exist but there is mysql_real_escape_string:
pawn Code:
native mysql_real_escape_string(const source[], destination[], connectionHandle = 1, max_len=sizeof(destination));
So what does that mean? Should I use the R33 Plugin that plugin have mysql_escape_string or I should change it?
Reply
#10

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

SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[17:18:32
[
17:18:32Server Plugins
[17:18:32] --------------
[
17:18:32]  Loading pluginstreamer
[17:18:32

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

[
17:18:32]   Loaded.
[
17:18:32]  Loading pluginsscanf
[17:18:32

[
17:18:32]  ===============================

[
17:18:32]       sscanf plugin loaded.     

[
17:18:32]    (c2009 Alex "Y_Less" Cole

[17:18:32]    0.3d-R2 500 Players "dnee"

[17:18:32]  ===============================

[
17:18:32]   Loaded.
[
17:18:32]  Loading pluginmysql
[17:18:32]  >> plugin.mysqlR33 successfully loaded.
[
17:18:32]   Loaded.
[
17:18:32]  Loading pluginWhirlpool
[17:18:32]  
[
17:18:32]  ==================
[
17:18:32]  
[
17:18:32]   Whirlpool loaded
[17:18:32]  
[
17:18:32]  ==================
[
17:18:32]  
[
17:18:32]   Loaded.
[
17:18:32]  Loaded 4 plugins.

[
17:18:32
[
17:18:32Ban list
[
17:18:32] --------
[
17:18:32]  Loadedsamp.ban
[17:18:32
[
17:18:32
[
17:18:32Filterscripts
[17:18:32] ---------------
[
17:18:32]   Loading filterscript 'yom_buttons.amx'...
[
17:18:32]   Loading filterscript 'gcustom.amx'...
[
17:18:33]   Loaded 2 filterscripts.

[
17:18:33]  
[
17:18:33]  ======================================= 
[
17:18:33]  |                                     | 
[
17:18:33]  |        YSI version 3.01.0002        
[
17:18:33]  |        By Alex "Y_Less" Cole        
[
17:18:33]  |                                     | 
[
17:18:33]  ======================================= 
[
17:18:33]  
[
17:18:33Preparing the gamemodeplease wait...
[
17:18:33] [MySQL] (Main PipelinesConnecting to 127.0.0.1...
[
17:18:33] [MySQL] (MainPipelineFatal ErrorCould not connect to MySQLHost 127.0.0.1 DBngrp_main Userroot
[17:18:33] [MySQLNoteMake sure that you have provided the correct connection credentials.
[
17:18:33] [MySQLError number1049
[17:18:33] [Dynamic GiftboxLoading the Dynamic Giftbox...
[
17:18:33] [LoadCratesLoad Query Sent
[17:18:33] [LoadHousesLoading data from database...
[
17:18:33] [LoadDynamicDoorsLoading data from database...
[
17:18:33] [LoadDynamicMapIconsLoading data from database...
[
17:18:33] [LoadMailboxesLoading data from database...
[
17:18:33] [LoadBusinessesLoading data from database...
[
17:18:33] [LoadAuctionsLoading data from database...
[
17:18:33] [LoadTxtLabelsLoading data from database...
[
17:18:33] [LoadPlantsLoading data from database...
[
17:18:33] [SpeedCamerasLoading data from database...
[
17:18:33] [LoadPayNSpraysLoading data from database...
[
17:18:33] [LoadArrestPointsLoading data from database...
[
17:18:33] [LoadImpoundPointsLoading data from database...
[
17:18:33] [LoadRelayForLifeTeamsLoading data from database...
[
17:18:33] [LoadBusinessSalesLoading data from database...
[
17:18:33] -mSelectionWARNINGFailed to load list: "ToyList.txt"
[17:18:33] -mSelectionWARNINGFailed to load list: "CarList.txt"
[17:18:33] -mSelectionWARNINGFailed to load list: "PlaneList.txt"
[17:18:33] -mSelectionWARNINGFailed to load list: "BoatList.txt"
[17:18:33] -mSelectionWARNINGFailed to load list: "ToyList.txt"
[17:18:33] -mSelectionWARNINGFailed to load list: "CarList.txt"
[17:18:33] -mSelectionWARNINGFailed to load list: "RestrictedCarList.txt"
[17:18:33] -mSelectionWARNINGFailed to load list: "SkinList.txt"
[17:18:33] [LoadTurfWars0 turfs loaded.
[
17:18:33] [LoadPaintballArenas10 paintball arenas loaded.
[
17:18:33] [LoadGatesLoading data from database...
[
17:18:33] [LoadFamiliesLoading data from database...
[
17:18:33] [LoadFamilyPointsLoading Family Points from the databaseplease wait...
[
17:18:33] [MiscLoadMisc Loaded
[17:18:33Resetting news...
[
17:18:33Resetting default server variables..
[
17:18:33Adjusted the server time...
[
17:18:33] [StreamerLoading Dynamic Static Vehicles...
[
17:18:33] [StreamerDynamic Static Vehicles has been loaded.
[
17:18:33] [StreamerLoading Dynamic Pickups...
[
17:18:33] [StreamerDynamic Pickups has been loaded.
[
17:18:33] [StreamerLoading 3D Text Labels...
[
17:18:33] [StreamerDynamic 3D Text Labels has been loaded.
[
17:18:33] [StreamerLoading Dynamic Buttons...
[
17:18:33] [StreamerDynamic Buttons has been loaded.
[
17:18:33] [StreamerLoading Dynamic Objects...
[
17:18:33] [StreamerDynamic Objects has been loaded.
[
17:18:33] [TextdrawsLoading Textdraws...
[
17:18:33] [TextdrawsLoaded textdraws.
[
17:18:33] [Dynamic GroupsLoading Dynamic Groups...
[
17:18:33] [Dynamic GroupsLoading Dynamic Groups Vehicles...
[
17:18:33
-------------------------------------------
[
17:18:33Prestigiuos Gaming Roleplay

[17:18:33Copyright (CPrestigiuos Gaming RoleplayLLC (2012-2013)
[
17:18:33All Rights Reserved
[17:18:33] -------------------------------------------

[
17:18:33Successfully initiated the gamemode...
[
17:18:33Number of vehicle models29
[17:18:33] --- Server Shutting Down.
[
17:18:33

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

[
17:18:33

[
17:18:33]  ===============================

[
17:18:33]      sscanf plugin unloaded.    

[
17:18:33]  ===============================

[
17:18:33plugin.mysqlUnloading plugin...
[
17:18:38plugin.mysqlPlugin unloaded.
[
17:18:38]  
[
17:18:38]  ====================
[
17:18:38]  
[
17:18:38]   Whirlpool unloaded
[17:18:38]  
[
17:18:38]  ====================
[
17:18:38
Now it will run but then it crash :<
Reply
#11

From what I see in R33, it's defined in R33. It's recommended though to use R38 which is the latest one and you can use mysql_format (it should be '%e' instead of '%s' to the one you want to escape) instead, without the need of using mysql_escape_string all the time for strings.

EDIT: It shuts down the server because of this:
pawn Code:
[MySQL] (Main Pipelines) Connecting to 127.0.0.1...
[17:18:33] [MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host 127.0.0.1 - DB: ngrp_main - User: root
[17:18:33] [MySQL] Note: Make sure that you have provided the correct connection credentials.
[17:18:33] [MySQL] Error number: 1049
And by the way, update streamer to 2.7.2 and sscanf to 2.8.1 as well as re-compile your scripts with the latest version of their include too.
Reply
#12

Quote:
Originally Posted by Konstantinos
View Post
From what I see in R33, it's defined in R33. It's recommended though to use R38 which is the latest one and you can use mysql_format (it should be '%e' instead of '%s' to the one you want to escape) instead, without the need of using mysql_escape_string all the time for strings.
Now server will start and die the same freaking second
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)