SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 22/05/2010, 01:22 PM   #1
BurrodaZero
Big Clucker
 
Join Date: Apr 2010
Posts: 108
Reputation: 0
Default MySql Saving IP?

I am making a system that saves IP in MySql but I stopped here and not go on, what I do now?

Here My Code
pawn Code:
#include <a_samp>
#include <a_mysql>
#define GAY 0x0000FFFF
#define SQL_HOST ""
#define SQL_USER ""
new
PIP[16],
hour,
minute,
second,
year,
month,
name[MAX_PLAYER_NAME],
nameplayer,
day;
public OnPlayerConnect(playerid)
{
new string[100];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerIp(playerid, PIP, sizeof(PIP));
gettime(hour, minute, second);
getdate(year, month, day);
format(string, sizeof(string), "%s Conectou ao servidor as %d:%d:%d \n.",nameplayer,hour, minute, second);
SendClientMessageToAll(GAY, string);
SaveIp(string);
return 1;
}
stock SaveIp(const ahahah[])
{
new string[128];
format(string, sizeof (string), "%s \r\n", ahahah);
mysql_query(string, 128);
}
BurrodaZero is offline  
 

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
saving ip in mysql database swredder Help Archive 2 12/05/2010 06:42 PM
Saving IP addresses in mysql JeroenGFX Help Archive 0 03/05/2010 06:06 PM
mysql saving prob WardenCS Help Archive 1 17/04/2010 07:37 PM
mysql score saving. ajwar Help Archive 2 26/01/2010 02:00 PM
MySQL Saving ON gmx jamesb93 Help Archive 0 17/11/2009 06:11 PM


All times are GMT. The time now is 01:36 PM.


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