Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: [VM_U]Spectra.PhantoM^ on Apr 14, 2016, 09:24 AM

Title: Gang system messed up
Post by: [VM_U]Spectra.PhantoM^ on Apr 14, 2016, 09:24 AM
so i copy/pasted a theirclantag function into my script made it like dis:
function onPlayerJoin( player )
{
if (TheirClanTag = "[thug]") Message(IM+"VIP Thugz Member " + player.Name + " Joined");
else Message("");
}
But someone named cap joined and it said VIP bla bla member cap joined.
Any Fix???
Title: Re: Gang system messed up
Post by: KAKAN on Apr 14, 2016, 09:45 AM
TheirClanTag is a function or a variable xd?
Anyways, here's the fixed one:
if (TheirClanTag == "[thug]") Message(IM+"VIP Thugz Member " + player.Name + " Joined");
else Message("");
It should be '==' and not '='.
Title: Re: Gang system messed up
Post by: [VM_U]Spectra.PhantoM^ on Apr 14, 2016, 09:48 AM
Wow.....
-_- Im a  dope anywayz thnx solved.
Title: Re: Gang system messed up
Post by: Anik on Apr 21, 2016, 07:09 AM
Why not Use the button "Mark As Solved" If your issue have fixed