Exactly , that was what I want thanks 
and sorry slc im noob at scripting please don't read my topics

and sorry slc im noob at scripting please don't read my topics

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu if ( cmd == "kick" )
{
if ( !text ) MessagePlayer( "Correct syntax : /kick <id> <reason>", player );
else if ( split(text, " ").len() < 2) return MessagePlayer("Correct syntax : /kick <id> <reason>", player )
else
{
local a = split(text, " "), plr = FindPlayer( text.tointeger() ), player = FindPlayer( text.tointeger() );
if ( !IsNum( a[0] ) || text( a[1] )) MessagePlayer( "Format: /kick <id> <reason>", player );
else {
KickPlayer( a[0].tointeger() );
Message( "Format: /kick <"+a[0]+"> <"+a[1]">" );
}
}
}
local q = ::mysql_query( sqliteDB, "SELECT x, y, z, Creator FROM Gotoloc WHERE Name = '"+ escapeSQLString( text ) +"'" );
if (mysql_num_fields(q,0) != null)
{
local x = mysql_num_fields(q,0).tofloat(), y = mysql_num_fields(q,1).tofloat(), z = mysql_num_fields(q,2).tofloat(), Creator = mysql_num_fields(q,3);
player.Pos = Vector( x.tofloat(), y.tofloat(), z.tofloat() );
MessagePlayer( "Syntax Error! You teleported to "+ escapeSQLString( text ) +" "+ x.tofloat" "y.tofloat()""z.tofloat()"", player );
}
local q = ::mysql_query( sqliteDB, "SELECT x, y, z, Creator FROM Gotoloc WHERE Name = '"+ escapeSQLString( text ) +"'" );
if (mysql_num_fields(q,0) != null)
{
local x = mysql_num_fields(q,0), y = mysql_num_fields(q,1), z = mysql_num_fields(q,2), Creator = mysql_num_fields(q,3);
player.Pos = Vector( x, y, z );
}
mysql_query( sqliteDB, "INSERT INTO Gotoloc (Name, x, y, z, Creator) VALUES('" + escapeSQLString( text ) + "', '" + player.Pos.x.tofloat() + "', '" + player.Pos.y.tofloat() + "', '" + player.Pos.z.tofloat() + "', '" + player.Name + "')" );
why don't float work here
mysql_query( sqliteDB, "INSERT INTO Gotoloc (Name, x, y, z, Creator) VALUES('" + text + "', '" + player.Pos.x + "', '" + player.Pos.y + "', '" + player.Pos.z + "', '" + player.Name + "'" );
// Ok i will use yours for security purpose
mysql_query( sqliteDB, "INSERT INTO Gotoloc (Name, x, y, z, Creator) VALUES('" + escapeSQLString( text ) + "', '" + player.Pos.x + "', '" + player.Pos.y + "', '" + player.Pos.z + "', '" + player.Name + "'" );
sqliteDB <- mysql_connect( "localhost", "root", "fenkyou", "notwork" ); // on scriptload
if( cmd == "saveloc" ){
sqliteDB <- mysql_query( sqliteDB, "INSERT INTO Gotoloc (Name, x, y, z, Creator) VALUES('" + text + "', '" + player.Pos.x + "', '" + player.Pos.y + "', '" + player.Pos.z + "', '" + player.Name + "'" );
}