SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 26/08/2014, 08:15 PM   #5041
Mellnik
Gangsta
 
Mellnik's Avatar
 
Join Date: Dec 2011
Location: Paradise Falls, CAℕADA
Posts: 767
Reputation: 373
Default AW: Re: [REL] MySQL Plugin (Now on github!)

Quote:
Originally Posted by Dodo9655 View Post
The links for R7 and below are dead!
Yes because aint nobody got time for those old versions.
Mellnik is offline   Reply With Quote
Old 01/09/2014, 04:23 PM   #5042
Patrick
Guest
 
Posts: n/a
Default Re: Re : [REL] MySQL Plugin (Now on github!)

Quote:
Originally Posted by S4t3K View Post
@Anou : To use cache functions in your code after a mysql_tquery, you MUST specify a callback in parameter of mysql_tquery.

Doing like this is the good way :

pawn Code:
forward myCallback();
public myCallback()
{
      new count = cache_get_row_count();
      // etc
}

// in some function

mysql_tquery(1, "SELECT * FROM myTable", "myCallback");

Whereas doing like this isn't :

pawn Code:
mysql_tquery(1, "SELECT * FROM myTable");
new count = cache_get_row_count();
// etc

The problem is that the cache is turned on only when the callback is called.
Look inline functions it does exactly the same as what you want.
  Reply With Quote
Old 01/09/2014, 04:25 PM   #5043
iFarbod
Gangsta
 
Join Date: Jan 2014
Location: Los Santos (HD Universe)
Posts: 610
Reputation: 61
Default Re: Re : [REL] MySQL Plugin (Now on github!)

Quote:
Originally Posted by Patrick View Post
Look inline functions it does exactly the same as what you want.
Exactly, Better than making a lot of public functions.
iFarbod is offline   Reply With Quote
Old 02/09/2014, 08:54 AM   #5044
S4t3K
Gangsta
 
S4t3K's Avatar
 
Join Date: Jan 2013
Posts: 864
Reputation: 165
Default Re : [REL] MySQL Plugin (Now on github!)

@Patrick : inline functions can be accessed from a plugin, like public ones ?

@iFarbod : In any case, we'll have to create a public function, as specified in the wiki page of the plugin.
__________________
S4t3K is offline   Reply With Quote
Old 02/09/2014, 09:54 AM   #5045
AmirSlaYeR
Big Clucker
 
AmirSlaYeR's Avatar
 
Join Date: Apr 2014
Location: IraN
Posts: 106
Reputation: 7
Default Re: [REL] MySQL Plugin (Now on github!)

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

[02:50:51] 
[02:50:51] Server Plugins
[02:50:51] --------------
[02:50:51]  Loading plugin: streamer
[02:50:51] 

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

[02:50:51]   Loaded.
[02:50:51]  Loading plugin: mysql
[02:50:51] 

  > MySQL plugin R5 successfully loaded.

[02:50:51]   Loaded.
[02:50:51]  Loading plugin: nativechecker
[02:50:51]   Loaded.
[02:50:51]  Loaded 3 plugins.

[02:50:51] 
[02:50:51] Filterscripts
[02:50:51] ---------------
[02:50:51]   Loaded 0 filterscripts.

[02:50:51]    Error: Function not registered: 'cache_get_data'
[02:50:51]    Error: Function not registered: 'cache_get_row'
[02:50:51]    Error: Function not registered: 'mysql_tquery'
[02:50:51]    Error: Function not registered: 'cache_get_row_int'
[02:50:51]    Error: Function not registered: 'cache_get_row_float'
[02:50:51]    Error: Function not registered: 'mysql_log'
[02:50:51] Script[gamemodes/LFG.amx]: Run time error 19: "File or function is not found"
[02:50:51] Number of vehicle models: 0

How to fix it ?
__________________
Yahoo!: wolf.trin
Line: Amirslayers
Viber: +989368291181 (09368291181)
********: hasan ebrahimi Or(wolf.trin@yahoo.com)
Skype: Forgot

IraN Is LiFe
AmirSlaYeR is offline   Reply With Quote
Old 02/09/2014, 10:21 AM   #5046
KingServerIRAN
Banned
 
Join Date: Aug 2013
Location: SarBNR, IRAN!. Reputation:9999. . Posts2: 160754
Posts: 360
Reputation: 45
Default Re: [REL] MySQL Plugin (Now on github!)

Quote:
Originally Posted by AmirSlaYeR View Post
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[02:50:51]
[02:50:51] Server Plugins
[02:50:51] --------------
[02:50:51] Loading plugin: streamer
[02:50:51]

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

[02:50:51] Loaded.
[02:50:51] Loading plugin: mysql
[02:50:51]

> MySQL plugin R5 successfully loaded.



How to fix it ?

update to R7
http://files.g-stylezzz.com/mysql/re...-win32_vs9.rar Windows
KingServerIRAN is offline   Reply With Quote
Old 02/09/2014, 10:39 AM   #5047
iFarbod
Gangsta
 
Join Date: Jan 2014
Location: Los Santos (HD Universe)
Posts: 610
Reputation: 61
Default Re: [REL] MySQL Plugin (Now on github!)

Quote:
Originally Posted by AmirSlaYeR View Post
Code:
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team

[02:50:51] 
[02:50:51] Server Plugins
[02:50:51] --------------
[02:50:51]  Loading plugin: streamer
[02:50:51] 

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

[02:50:51]   Loaded.
[02:50:51]  Loading plugin: mysql
[02:50:51] 

  > MySQL plugin R5 successfully loaded.

[02:50:51]   Loaded.
[02:50:51]  Loading plugin: nativechecker
[02:50:51]   Loaded.
[02:50:51]  Loaded 3 plugins.

[02:50:51] 
[02:50:51] Filterscripts
[02:50:51] ---------------
[02:50:51]   Loaded 0 filterscripts.

[02:50:51]    Error: Function not registered: 'cache_get_data'
[02:50:51]    Error: Function not registered: 'cache_get_row'
[02:50:51]    Error: Function not registered: 'mysql_tquery'
[02:50:51]    Error: Function not registered: 'cache_get_row_int'
[02:50:51]    Error: Function not registered: 'cache_get_row_float'
[02:50:51]    Error: Function not registered: 'mysql_log'
[02:50:51] Script[gamemodes/LFG.amx]: Run time error 19: "File or function is not found"
[02:50:51] Number of vehicle models: 0

How to fix it ?
Quote:
> MySQL plugin R5 successfully loaded.
WTF? You must update to MySQL Plugin's latest version!

No! Not this! Can you see the MySQL's R33+ Version? Can you check GitHub at least?

https://github.com/pBlueG/SA-MP-MySQL/releases
Please DOWNLOAD R39-2!!!
iFarbod is offline   Reply With Quote
Old 02/09/2014, 12:03 PM   #5048
Omirrow
Huge Clucker
 
Join Date: Feb 2013
Location: Turkey
Posts: 282
Reputation: 8
Default Re: [REL] MySQL Plugin (Now on github!)

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

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

[15:01:03] filterscripts = "" (string)
[15:01:03]
[15:01:03] Server Plugins
[15:01:03] --------------
[15:01:03] Loading plugin: mysql
[15:01:03] Failed.
[15:01:03] Loaded 0 plugins.

[15:01:03]
[15:01:03] Filterscripts
[15:01:03] ---------------
[15:01:03] Loaded 0 filterscripts.

[15:01:03] Script[gamemodes/slymind.amx]: Run time error 19: "File or function is not found"
[15:01:03] Number of vehicle models: 0

I've this problem, like other people. My mysql plugin is at last version, I downloaded which is posted laslty
Omirrow is offline   Reply With Quote
Old 02/09/2014, 12:18 PM   #5049
iFarbod
Gangsta
 
Join Date: Jan 2014
Location: Los Santos (HD Universe)
Posts: 610
Reputation: 61
Default Re: [REL] MySQL Plugin (Now on github!)

Quote:
Originally Posted by Omirrow View Post
----------
Loaded log file: "server_log.txt".
----------

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

[15:01:03] filterscripts = "" (string)
[15:01:03]
[15:01:03] Server Plugins
[15:01:03] --------------
[15:01:03] Loading plugin: mysql
[15:01:03] Failed.
[15:01:03] Loaded 0 plugins.

[15:01:03]
[15:01:03] Filterscripts
[15:01:03] ---------------
[15:01:03] Loaded 0 filterscripts.

[15:01:03] Script[gamemodes/slymind.amx]: Run time error 19: "File or function is not found"
[15:01:03] Number of vehicle models: 0

I've this problem, like other people. My mysql plugin is at last version, I downloaded which is posted laslty
Your plugin isn't loaded, also, try debugging it using 'nativechecker' plugin.
iFarbod is offline   Reply With Quote
Old 02/09/2014, 12:30 PM   #5050
maddinat0r
Banned
 
Join Date: Jun 2010
Location: Germany
Posts: 845
Reputation: 482
Default Re: [REL] MySQL Plugin (Now on github!)

The nativechecker plugin won't help here, you probably just don't have the required C++ redistributables installed. Check the FAQ for a solution.
maddinat0r is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
****** Project: Glass int3s0 Everything and Nothing 99 26/02/2013 04:22 PM
MySQL Plugin R5 plugin problem dud Scripting Help 12 05/12/2011 06:28 PM
Strikens Mysql vs BlueG's Mysql plugin PrawkC Scripting Help 4 30/09/2011 10:30 AM
[help][plugin] Can't load mysql plugin mariomako Help Archive 8 16/07/2011 02:37 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 02:32 PM


All times are GMT. The time now is 02:38 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.