Unique Force | VC:MP

Community => Clan Chat => Topic started by: Stubborn on May 08, 2018, 03:10:50 pm

Title: Help Required.
Post by: Stubborn on May 08, 2018, 03:10:50 pm
In this topic I want to enquire that if any of you know Vcmp scripting(Squirrel).Because I really want to learn server scripting. I also know the basics of C/C++ Language like its control structure,loops etc.I have also searched Internet for it but I can't understand it properly.I will be thankful. :)
Title: Re: Help Required.
Post by: Saim on May 08, 2018, 03:22:48 pm
I think you recently passed your exams of matriculation or intermediate grade, with computer subjects.This type of plan had come to my mind when i passed these grades.
Title: Re: Help Required.
Post by: Stubborn on May 08, 2018, 03:38:40 pm
I think you recently passed your exams of matriculation or intermediate grade, with computer subjects.This type of plan had come to my mind when i passed these grades.
Wow  O0 you are right.. yeah i have some spare time so i was thinking about it.
Title: Re: Help Required.
Post by: Saim on May 08, 2018, 04:46:22 pm
I think you recently passed your exams of matriculation or intermediate grade, with computer subjects.This type of plan had come to my mind when i passed these grades.
Wow  O0 you are right.. yeah i have some spare time so i was thinking about it.
Well, i was not interested in these stuff, but I got good marks in computer subject, Buddy You have interest in it, so give your spare time to it. and I hope you will learn more things about these Languages. Good Luck for it
Title: Re: Help Required.
Post by: Zeeshan.Bhatti on May 08, 2018, 06:12:38 pm
VCMP's forum is the place you are looking for, try for the help there.
Title: Re: Help Required.
Post by: IcyF on May 08, 2018, 09:33:49 pm
VCMP's forum is the place you are looking for, try for the help there.
Zee bhai is right, you should post this on VCMP forum so you can get alot of info regarding this.
Title: Re: Help Required.
Post by: Stubborn on May 09, 2018, 02:16:41 pm
Yeah bro i have visited that forum. I have seen syntax and examples of some commands and functions. But still they are not enough for thorough explaination. Like what would happen if such command is missing and what what a command actually do when it is executed. So i need help for that.
Title: Re: Help Required.
Post by: Arsh on May 09, 2018, 02:34:51 pm
You should ask @SuriAttacker regarding this.
Title: Re: Help Required.
Post by: Stubborn on May 09, 2018, 03:34:36 pm
You should ask @SuriAttacker regarding this.
Sure.If SuriAttacker is scripter,  I will have a discussion with him.
Title: Re: Help Required.
Post by: Hydra on May 09, 2018, 03:59:52 pm
Be clear i didnt understood your questions
what you mean by if such a command missing?
Title: Re: Help Required.
Post by: Saim on May 09, 2018, 04:34:05 pm
Be clear i didnt understood your questions
what you mean by if such a command missing?
Yes he's saying that he is forgot about hydra cmd
Title: Re: Help Required.
Post by: Stubborn on May 09, 2018, 07:01:39 pm
Be clear i didnt understood your questions
what you mean by if such a command missing?
I meant if running scripts show some type of syntax error then what is the error about if it is command missing , some other errors etc
Title: Re: Help Required.
Post by: Hydra on May 09, 2018, 11:38:44 pm
Be clear i didnt understood your questions
what you mean by if such a command missing?
I meant if running scripts show some type of syntax error then what is the error about if it is command missing , some other errors etc
Hey stub, if you do something wrong when you will try to start server you will get a error on console and error name will explain everything if not then try to use that command it will throw error and then fix it
but in vcmp mostly we dont get proper errors if got stucked somewhere and no error poping try to post on forum.vc-mp.org
like
Code: [Select]
if (cmd == "heal")
{
player.Health = 100;
MessagePlayer("Healed",player);
}
}
if you use this code it will throw a error of expression expected when you start server because i added a extra bracket at end when u remove that bracket it will start working
Also read this thread http://forum.vc-mp.org/?topic=3335.0
@saim if you cant help then close your mouth dont bark
Title: Re: Help Required.
Post by: Zeeshan.Bhatti on May 10, 2018, 12:16:18 am
If you wanted to learn squirrel search on the google for some basic points of it and after that try scripting on your server try create a command by yourself if you get any errors vcmp's forum is always there to help you out in any situations and obserb the errors fixes on your mind, like Hydra explained, a example of error in command if you add more brackets than the limitations you'll get a same error "expression expected' if you don't add limited brackets or you didn't fullfill command's requirements it won't work properly and of course will encounter a error on the console which will be same "expression expected'. There are still many more things which you have to get into your mind. For that try hard until you get success. Hoping for the best. Good luck.
Title: Re: Help Required.
Post by: Stubborn on May 10, 2018, 08:55:37 am
Be clear i didnt understood your questions
what you mean by if such a command missing?
I meant if running scripts show some type of syntax error then what is the error about if it is command missing , some other errors etc
Hey stub, if you do something wrong when you will try to start server you will get a error on console and error name will explain everything if not then try to use that command it will throw error and then fix it
but in vcmp mostly we dont get proper errors if got stucked somewhere and no error poping try to post on forum.vc-mp.org
like
Code: [Select]
if (cmd == "heal")
{
player.Health = 100;
MessagePlayer("Healed",player);
}
}
if you use this code it will throw a error of expression expected when you start server because i added a extra bracket at end when u remove that bracket it will start working
Also read this thread http://forum.vc-mp.org/?topic=3335.0
Thanks man atlast after hardwork I figured it out.

If you wanted to learn squirrel search on the google for some basic points of it and after that try scripting on your server try create a command by yourself if you get any errors vcmp's forum is always there to help you out in any situations and obserb the errors fixes on your mind, like Hydra explained, a example of error in command if you add more brackets than the limitations you'll get a same error "expression expected' if you don't add limited brackets or you didn't fullfill command's requirements it won't work properly and of course will encounter a error on the console which will be same "expression expected'. There are still many more things which you have to get into your mind. For that try hard until you get success. Hoping for the best. Good luck.
Yeah i have learned many of the commands and its function but still there is some complicated work to do like register commands and cash commands and stats .However i figured out the basic commands like ban,kick,weather,animations,announce,heal,classes etc. If there is any help regarding the above said commands kindly mention please.
Title: Re: Help Required.
Post by: IcyF on May 10, 2018, 01:07:43 pm
Good luck hope for the best !  ;)
Title: Re: Help Required.
Post by: Zeeshan.Bhatti on May 10, 2018, 08:36:49 pm
The only command of cash/deposit/withdraw financial stuff is not enough for system to work, you have to create some functions to save status of cash first otherwise it won't give you what you want from them. Try learning SQL Language which is used for saving data and itself is a database, I'm not in this stuff from long time I have forget most of the stuff so I will advice you to learn sql it's basic it's command how it works how it runs etc.