Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: umar4911 on Oct 07, 2017, 06:15 AM

Title: Gotoloc easy fix
Post by: umar4911 on Oct 07, 2017, 06:15 AM
I was making my gotoloc and encountered a small problem. Please fix it.
I am a little weak in making functions
onplayercommand
else if(cmd == "gotoloc")
{
if(!arguments) MessagePlayer("Wrong Syntax. Use /" + cmd + " <Name> ", player);
else
{
local q = QuerySQL(tele, "SELECT * FROM Locations WHERE Name = '" + arguments + "'");
if(!q) MessagePlayer("Location does not exist.", player);
else
{
player.IsFrozen = true;
NewTimer("gotoloc", 1000, 1, arguments, player);
local plr = GetSQLColumnData(q, 1);
MessagePlayer("You are being teleported to location: " + arguments + " made by: " + plr + ".", player);

}


}
}
 
 


function
function gotoloc(player, arguments )
{
local q = QuerySQL(tele, "SELECT * FROM Locations WHERE Name = '" + arguments +"'");
if(q)
{
xaxis = GetSQLColumnData(q, 2);
yaxis = GetSQLColumnData(q, 3);
zaxis = GetSQLColumnData(q, 4);

player.Pos = Vector(xaxis, yaxis, zaxis);
player.IsFrozen = false;
}



}

Title: Re: Gotoloc easy fix
Post by: DizzasTeR on Oct 07, 2017, 06:24 AM
Can you stop with your fucking easy fix titles? if its that easy then do it yourself, or just ask properly.

What the fuck is wrong with you people? Do you always need a moderator or someone else to come here and tell you to read the instructions on making a proper topic before asking for help?

I probably might get some shit against me for using this attitude but for fuck sake, every day I see the same bullshit from one guy.. I believe even the people taking care of this forum are now tired of this bullshit

Quote from: umar4911 on Oct 07, 2017, 06:15 AM...Please fix it.

No.
Title: Re: Gotoloc easy fix
Post by: umar4911 on Oct 07, 2017, 06:54 AM
Quote from: Doom_Kill3R on Oct 07, 2017, 06:24 AMCan you stop with your fucking easy fix titles? if its that easy then do it yourself, or just ask properly.

What the fuck is wrong with you people? Do you always need a moderator or someone else to come here and tell you to read the instructions on making a proper topic before asking for help?

I probably might get some shit against me for using this attitude but for fuck sake, every day I see the same bullshit from one guy.. I believe even the people taking care of this forum are now tired of this bullshit

Quote from: umar4911 on Oct 07, 2017, 06:15 AM...Please fix it.

No.
Did I added it to the title?? and I am requesting a person not forcing to tell me.
Title: Re: Gotoloc easy fix
Post by: Xmair on Oct 07, 2017, 10:40 AM
Quote from: umar4911 on Oct 07, 2017, 06:54 AM
Quote from: Doom_Kill3R on Oct 07, 2017, 06:24 AMCan you stop with your fucking easy fix titles? if its that easy then do it yourself, or just ask properly.

What the fuck is wrong with you people? Do you always need a moderator or someone else to come here and tell you to read the instructions on making a proper topic before asking for help?

I probably might get some shit against me for using this attitude but for fuck sake, every day I see the same bullshit from one guy.. I believe even the people taking care of this forum are now tired of this bullshit

Quote from: umar4911 on Oct 07, 2017, 06:15 AM...Please fix it.

No.
Did I added it to the title?? and I am requesting a person not forcing to tell me.
Use this:
player.Pos = Vector(xaxis.tofloat(), yaxis.tofloat(), zaxis.tofloat());
Instead of:
player.Pos = Vector(xaxis, yaxis, zaxis);
Also fuck you.
Title: Re: Gotoloc easy fix
Post by: D4rkR420R on Oct 07, 2017, 03:17 PM
Quote from: Xmair on Oct 07, 2017, 10:40 AM
Quote from: umar4911 on Oct 07, 2017, 06:54 AM
Quote from: Doom_Kill3R on Oct 07, 2017, 06:24 AMCan you stop with your fucking easy fix titles? if its that easy then do it yourself, or just ask properly.

What the fuck is wrong with you people? Do you always need a moderator or someone else to come here and tell you to read the instructions on making a proper topic before asking for help?

I probably might get some shit against me for using this attitude but for fuck sake, every day I see the same bullshit from one guy.. I believe even the people taking care of this forum are now tired of this bullshit

Quote from: umar4911 on Oct 07, 2017, 06:15 AM...Please fix it.

No.
Did I added it to the title?? and I am requesting a person not forcing to tell me.
Use this:
player.Pos = Vector(xaxis.tofloat(), yaxis.tofloat(), zaxis.tofloat());
Instead of:
player.Pos = Vector(xaxis, yaxis, zaxis);
Also fuck you.

Avoid cursing here in the board & avoid players, who don't have the knowledge to make a proper topic, who provokes you.
Title: Re: Gotoloc easy fix
Post by: Cool on Oct 07, 2017, 03:22 PM
@Doom_Kill3R on Fire :P
Title: Re: Gotoloc easy fix
Post by: umar4911 on Oct 07, 2017, 05:06 PM
Quote from: Xmair on Oct 07, 2017, 10:40 AM
Quote from: umar4911 on Oct 07, 2017, 06:54 AM
Quote from: Doom_Kill3R on Oct 07, 2017, 06:24 AMCan you stop with your fucking easy fix titles? if its that easy then do it yourself, or just ask properly.

What the fuck is wrong with you people? Do you always need a moderator or someone else to come here and tell you to read the instructions on making a proper topic before asking for help?

I probably might get some shit against me for using this attitude but for fuck sake, every day I see the same bullshit from one guy.. I believe even the people taking care of this forum are now tired of this bullshit

Quote from: umar4911 on Oct 07, 2017, 06:15 AM...Please fix it.

No.
Did I added it to the title?? and I am requesting a person not forcing to tell me.
Use this:
player.Pos = Vector(xaxis.tofloat(), yaxis.tofloat(), zaxis.tofloat());
Instead of:
player.Pos = Vector(xaxis, yaxis, zaxis);
Also fuck you.
Retard I am locking this topic