SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 01/12/2008, 05:10 PM   #11
Yaheli_Faro
High-roller
 
Join Date: Feb 2008
Posts: 1,053
Reputation: 8
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Yaheli
Do I have to know PHP to make a page that shows user stats online?
Yes, quite limited PHP though, I thought it was hard at first but after going through other Control Panels code its actually quite easy to match PHP + SA-MP
Hm... you have anything good I can learn from?
Yaheli_Faro is offline   Reply With Quote
Old 01/12/2008, 05:16 PM   #12
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,266
Reputation: 363
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Quote:
Originally Posted by Yaheli
Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Yaheli
Do I have to know PHP to make a page that shows user stats online?
Yes, quite limited PHP though, I thought it was hard at first but after going through other Control Panels code its actually quite easy to match PHP + SA-MP
Hm... you have anything good I can learn from?
Well you need to learn some basic SQL first, I thought it was very hard but after I got into it and a bit of help from G-Stylezzz its quite easy. Then once you know some basic SQL just download Los Santos Next Episodes control panel by G-Stylezz and take a look at how he integrates user stats etc. Its a bit of a learning curve but its worth learning.
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]

Last edited by JaTochNietDan; 23/07/2011 at 04:27 AM.
JaTochNietDan is offline   Reply With Quote
Old 01/12/2008, 05:19 PM   #13
Yaheli_Faro
High-roller
 
Join Date: Feb 2008
Posts: 1,053
Reputation: 8
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Yaheli
Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Yaheli
Do I have to know PHP to make a page that shows user stats online?
Yes, quite limited PHP though, I thought it was hard at first but after going through other Control Panels code its actually quite easy to match PHP + SA-MP
Hm... you have anything good I can learn from?
Well you need to learn some basic MySQL first, I thought it was very hard but after I got into it and a bit of help from G-Stylezzz its quite easy. Then once you know some basic MySQL just download Los Santos Next Episodes control panel by G-Stylezz and take a look at how he integrates user stats etc. Its a bit of a learning curve but its worth learning.
And i'm guessing that to learn basic MySQL I need to go to their webpage?
Yaheli_Faro is offline   Reply With Quote
Old 01/12/2008, 05:20 PM   #14
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,266
Reputation: 363
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Quote:
Originally Posted by Yaheli
Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Yaheli
Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Yaheli
Do I have to know PHP to make a page that shows user stats online?
Yes, quite limited PHP though, I thought it was hard at first but after going through other Control Panels code its actually quite easy to match PHP + SA-MP
Hm... you have anything good I can learn from?
Well you need to learn some basic MySQL first, I thought it was very hard but after I got into it and a bit of help from G-Stylezzz its quite easy. Then once you know some basic MySQL just download Los Santos Next Episodes control panel by G-Stylezz and take a look at how he integrates user stats etc. Its a bit of a learning curve but its worth learning.
And i'm guessing that to learn basic MySQL I need to go to their webpage?
http://www.w3schools.com/PHP/php_mysql_intro.asp

That is an extremely good website for learning ANYTHING!
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]

Last edited by JaTochNietDan; 29/08/2011 at 01:21 PM.
JaTochNietDan is offline   Reply With Quote
Old 02/12/2008, 09:31 AM   #15
rafay
High-roller
 
rafay's Avatar
 
Join Date: Mar 2008
Location: Pakistan
Posts: 1,465
Reputation: 1
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

OMG! A ready made php script! :O
Respect man! thx

EDIT: FFS, I cant see the download button --..--
__________________
rafay is offline   Reply With Quote
Old 02/12/2008, 01:35 PM   #16
Yaheli_Faro
High-roller
 
Join Date: Feb 2008
Posts: 1,053
Reputation: 8
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Quote:
Originally Posted by Rafay
OMG! A ready made php script! :O
Respect man! thx

EDIT: FFS, I cant see the download button --..--
It isn't exactly a ready made php script, theres lots of work to do... (Which I am having trouble understanding )
Yaheli_Faro is offline   Reply With Quote
Old 02/12/2008, 02:19 PM   #17
rafay
High-roller
 
rafay's Avatar
 
Join Date: Mar 2008
Location: Pakistan
Posts: 1,465
Reputation: 1
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Quote:
Originally Posted by Yaheli
Quote:
Originally Posted by Rafay
OMG! A ready made php script! :O
Respect man! thx

EDIT: FFS, I cant see the download button --..--
It isn't exactly a ready made php script, theres lots of work to do... (Which I am having trouble understanding )
& i can't even download it!
Somebody upload it to somewhere please.!
__________________
rafay is offline   Reply With Quote
Old 02/12/2008, 04:25 PM   #18
FrankZZ
Little Clucker
 
Join Date: Jul 2006
Posts: 10
Reputation: 0
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

When I execute a SELECT query, selecting multiple rows, and I call the mysql_fetch_row function, the server crashes.
though it does not when i limit the results to 1 row..
FrankZZ is offline   Reply With Quote
Old 02/12/2008, 04:26 PM   #19
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,266
Reputation: 363
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Quote:
Originally Posted by Rafay
Quote:
Originally Posted by Yaheli
Quote:
Originally Posted by Rafay
OMG! A ready made php script! :O
Respect man! thx

EDIT: FFS, I cant see the download button --..--
It isn't exactly a ready made php script, theres lots of work to do... (Which I am having trouble understanding )
& i can't even download it!
Somebody upload it to somewhere please.!
What script?
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]

Last edited by JaTochNietDan; 23/07/2011 at 04:28 AM.
JaTochNietDan is offline   Reply With Quote
Old 02/12/2008, 07:36 PM   #20
Ycto
Big Clucker
 
Join Date: Jul 2007
Posts: 72
Reputation: 0
Default Re: [REL] Alternative MySQL Plugin (+example PAWN/PHP script)

Hai!

Nice work on the plugin!

@ Yaheli: You can take a look at SAMPSt's php files.You can learn quite a lot out of these. Link: http://forum.sa-mp.com/index.php?topic=23380.0
Ycto 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 09:27 AM.


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