• Welcome to Vice City Multiplayer.
 

Please help

Started by [NoN]Toiletduck, December 09, 2008, 10:48:12 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

[NoN]Toiletduck

Hi guys I'm trying some scripts on GUS.
I want to have an ingame command that allows you to apply to be set to the next level or whatever.
It is similar to bug report except with a different cmd name.
It isn't really working at all so can someone please tell me what is wrong with the script?



Hancock

Ok You want A command To Apply to level up Right?

Ok

  }
  elseif (!Apply* iswm $2) || (!pmApply* iswm $2) {
    if ($vcmp.cmdcheck(!bug,%id) == fail) !halt   
    else {
      vcmp.cmdsay $2 %id Thank you For you Apply We Will check That out Soon!
      !write vcmp.apply.ini %name - $3-
    }
  }


And You have To Creat a new ini Name > vcmp.apply.ini :)

Hancock :D
Hancock Of VC-MP


Force

Hey,

Try this  :)


elseif (!levelupapp* iswm $2) || (!pmlevelupapp* iswm ?2) {
if ($vcmp.cmdcheck(!levelupapp,%id) == fail) !halt
else {
vcmp.cmdsay $2 %id Sending Levelup-Application - Status: Done $+ , Note: Thanks %name for the support
!writeini vcmp.levelup.ini %name Applied
}
}

VRocker

Your !write syntax is correct and does work in testing so i assume theres 1 or 2 possibilities...

First of all, does vcmp.cmdcheck return pass or fail? if it returns fail then this would be why its not working

Second thing would be what operating system are you using and what version of mirc?
Under vista with mirc 6.3, doing !write blah.something 1 2 will write a file call blah.something to C:\Users\<Username>\AppData\Roaming\mIRC. Have you checked there for the file?
If you want it to be in the script directory, use !write $qt($scriptdirblah.something) 1 2

Hope this helps


Hancock

Hey VROCKER Its Gus lol not mIRC xD
Hancock Of VC-MP


thijn

eeh thats acctually thesame because GUS and any other vcmp script is running trough mirc ;D


[NoN]Toiletduck

I forgot to thank you guys for the trouble you went to.
So thanks Thijn.
Thanks Windlord.
Thanks Hankock.
Thanks Force.

Mex

just fort i'd mention, as you've got more than 1 condition in your elseif statement, you should put an extra set of ( ) around the first and last condition.

so
elseif (!levelupapp* iswm $2) || (!pmlevelupapp* iswm ?2) {
should be
elseif ((!levelupapp* iswm $2) || (!pmlevelupapp* iswm ?2)) {


even though the way you had it may work, that is the way it should be done ;)

[NoN]Toiletduck