Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Finch on Apr 14, 2015, 09:36 AM

Title: Adminship
Post by: Finch on Apr 14, 2015, 09:36 AM
Hello!

Today i was making adminship system when i join server and type /adminship name and reason its asay your appeal is gone but when i join again and type /adminship name and reason nothing happens then i check console that is error
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi57.tinypic.com%2F121qyat.jpg&hash=0f4722d86772ebb70e7cf0b2279ed4d3953edbcf)
adn then that is line

QuerySQL( sqliteDB, "INSERT INTO Adminship (Name, IP, Reason, Player) values ( '" + plr.Name + "', '" + plr.IP + "', '"+Reason+"', '"+player.Name+"' )" );
Title: Re: Adminship
Post by: EK.IceFlake on Apr 14, 2015, 11:04 AM
Now tell us the freaking code around it that involves "plr"!
Title: Re: Adminship
Post by: Stormeus on Apr 14, 2015, 11:13 AM
( '" + plr.Name + "', '" + plr.IP + "', '"+Reason+"', '"+player.Name+"' )" );
Why are you mixing plr and player when plr doesn't even exist?
Title: Re: Adminship
Post by: Finch on Apr 14, 2015, 11:33 AM
Thanks Problem Solve