SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 06/12/2011, 05:50 PM   #21
Unknown123
Guest
 
Posts: n/a
Default Re: Creating dynamic signatures using PHP and MySQL.

Quote:
Originally Posted by Nodroz View Post
Are you loading the correct information from your mysql database ?
yes.
  Reply With Quote
Old 06/12/2011, 07:02 PM   #22
Nodroz
Big Clucker
 
Join Date: Feb 2011
Posts: 70
Reputation: 49
Default Re: Creating dynamic signatures using PHP and MySQL.

Quote:
Originally Posted by Unknown123 View Post
yes.
We fixed on teamviewer. In case there is still something not clear, just pm me.
__________________

Check out San Andreas Pilots Server.
One of the oldest server on the sa-mp list. More than 6 years old!
- Friendly community
- Great admins
- Awesome features like ADF, VOR and ILS
- Custom mapped islands and mainland airports
- License system in a flight simulator
- All kind of planes available!

http://sapilots.net/
Nodroz is offline   Reply With Quote
Old 06/12/2011, 09:52 PM   #23
Unknown123
Guest
 
Posts: n/a
Default Re: Creating dynamic signatures using PHP and MySQL.

Quote:
Originally Posted by Nodroz View Post
We fixed on teamviewer. In case there is still something not clear, just pm me.
yes, thanks. is it possible to do this with SQLite too? or just MySQL?
  Reply With Quote
Old 06/12/2011, 09:53 PM   #24
Djankaa
Little Clucker
 
Join Date: Mar 2011
Posts: 48
Reputation: 0
Default Re: Creating dynamic signatures using PHP and MySQL.

Question : Could i make something like this with SQLite ?
__________________
Ping | Need For Speed - Progres
OwnerShip 100 % | Reg/Log sistem 100 % | Admin + GameMaster sistem 100 % | Bande 70 % | Poslovi 90 % | Eventi 0 % | Sistem Duel za Gunove 100 % | Sistem Duel Race 100 % | Tuning Sistem 0 %
Potrebni Mapperi za Ping posebno za NFS i FR mod
Prijavnica :
Code:
Nick na forumu ( Ping forumu ) :
Za koji mod zelite mappat ( mozemo se bazirat samo za jedan a mozete za oba ) :
Sto zelite kao nagradu :
Djankaa is offline   Reply With Quote
Old 07/12/2011, 08:22 AM   #25
Biesmen
High-roller
 
Biesmen's Avatar
 
Join Date: May 2009
Posts: 1,057
Reputation: 665
Default Re: Creating dynamic signatures using PHP and MySQL.

Nodroz, could you fix this?
This is an error many users get:
PHP Notice: Undefined variable: i in C:/Users/blabla on line (the line which stores the MYSQL data)
The error is at a line that stores the MYSQL data in a variable
PHP Code:

$Kills
=mysql_result($result,$i,"Kills");
    
$Deaths=mysql_result($result,$i,"Deaths"); 
You have to define "$i".

(I can't do that because I am not really good with PHP)
Biesmen is offline   Reply With Quote
Old 07/12/2011, 11:37 AM   #26
Nodroz
Big Clucker
 
Join Date: Feb 2011
Posts: 70
Reputation: 49
Default Re: Creating dynamic signatures using PHP and MySQL.

Guys, sorry, but I don't have time right now to answer your questions. My exams are started and I'm kind of short in time.

I'll take a break sooner or laater, then I'll look at your problems. Sorry for the delay!

Regards,
Nodroz
__________________

Check out San Andreas Pilots Server.
One of the oldest server on the sa-mp list. More than 6 years old!
- Friendly community
- Great admins
- Awesome features like ADF, VOR and ILS
- Custom mapped islands and mainland airports
- License system in a flight simulator
- All kind of planes available!

http://sapilots.net/
Nodroz is offline   Reply With Quote
Old 07/12/2011, 01:42 PM   #27
#marcus.
Little Clucker
 
Join Date: Apr 2011
Location: Hrv. Zagorje, Croatia
Posts: 12
Reputation: 0
Thumbs up Re: Creating dynamic signatures using PHP and MySQL.

Tutorial is great, helped me alot!

Keep up the good work!
#marcus. is offline   Reply With Quote
Old 09/12/2011, 05:55 PM   #28
Nodroz
Big Clucker
 
Join Date: Feb 2011
Posts: 70
Reputation: 49
Default Re: Creating dynamic signatures using PHP and MySQL.

Sorry for the delay, but I have updated my tutorial.

I've implented that if a type in a username that doesn't exist, it'll give an error.
__________________

Check out San Andreas Pilots Server.
One of the oldest server on the sa-mp list. More than 6 years old!
- Friendly community
- Great admins
- Awesome features like ADF, VOR and ILS
- Custom mapped islands and mainland airports
- License system in a flight simulator
- All kind of planes available!

http://sapilots.net/
Nodroz is offline   Reply With Quote
Old 09/12/2011, 06:56 PM   #29
Speed
Huge Clucker
 
Join Date: Jan 2011
Posts: 206
Reputation: 7
Default Re: Creating dynamic signatures using PHP and MySQL.

Maybe you can make that for .ini system?
Speed is offline   Reply With Quote
Old 09/12/2011, 10:01 PM   #30
Zonoya
Gangsta
 
Zonoya's Avatar
 
Join Date: Jul 2011
Location: Am I in Rio de Janeiro or the Amazon, you tell me?
Posts: 664
Reputation: 19
Default Re: Creating dynamic signatures using PHP and MySQL.

too bad i dont know any free forums that can use PHP D:
__________________
Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}
Zonoya 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
Dynamic Signatures? Nodroz Everything and Nothing 28 05/09/2012 12:39 AM
Help with Creating a GPS system (Dynamic) orrgoren11 Help Archive 3 18/05/2011 09:39 AM
[Help] ZCMD Dynamic Pickup Creating Dudits Help Archive 10 15/07/2010 03:15 AM
Format() - Creating Dynamic Messages Fresh_X Help Archive 28 27/10/2009 02:30 AM


All times are GMT. The time now is 05:43 AM.


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