Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Cool on Feb 10, 2016, 07:00 PM

Title: ban
Post by: Cool on Feb 10, 2016, 07:00 PM
Code Removed
Title: Re: ban
Post by: Thijn on Feb 10, 2016, 07:07 PM
A timer cannot pass an instance. So use player.ID and FindPlayer.
Title: Re: ban
Post by: Cool on Feb 10, 2016, 08:45 PM
giving error Name does not exists when is in red colour
    local query = QuerySQL( sqliteDB, "SELECT * FROM Banned WHERE ban_nick='" + player.Name] + "' COLLATE NOCASE" ), Ip = player.IP.tostring();
Title: Re: ban
Post by: MatheuS on Feb 10, 2016, 10:11 PM
player.Name]
to

player.Name
Title: Re: ban
Post by: Cool on Feb 11, 2016, 08:27 AM
not working
Title: Re: ban
Post by: Stormeus on Feb 11, 2016, 08:39 AM
Did you remember to use FindPlayer after passing the ID?
Title: Re: ban
Post by: Cool on Feb 11, 2016, 09:28 AM
Removed
Title: Re: ban
Post by: Cool on Feb 11, 2016, 10:08 AM
I ADDED IN playerjoin already but now the prob is that i ban myself when i rejoin i am unbanned why
and in db ban list i am banned but i can join
Title: Re: ban
Post by: Cool on Feb 11, 2016, 11:58 AM
please someone help
Title: Re: ban
Post by: FarisDon on Feb 12, 2016, 09:26 AM
Quote from: Hercules on Feb 11, 2016, 11:58 AMplease someone help
function Banned( player ) to function Banned( p )Well, the mistake is that You are using an undefined variable which is actually "p"
It doesn't exist.
local player = FindPlayer(p); you can see mistake over here :)
P.S: - And please don't be a noob, post error if you get.
Title: Re: ban
Post by: Cool on Feb 12, 2016, 09:48 AM
i didnt notice that and thankyou very much and next i will post screenshot thanks