Hello I wanna script a server so, I need details. How can I script a server?
You should consider some programming courses first, I wouldn't recommend starting with a non-typesafe language
Quote from: Murdock on May 30, 2016, 08:15 AMYou should consider some programming courses first, I wouldn't recommend starting with a non-typesafe language
F* your basics man. I wanna code 8)
download - http://forum.vc-mp.org/?topic=33.0
then edit main.nut file using something from:
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Events
Quote from: Murdock on May 30, 2016, 08:15 AMYou should consider some programming courses first, I wouldn't recommend starting with a non-typesafe language
Yes. If you new in coding - better to start from javascript. It's very tolerant for newbies.
Thanks for that, but I don't know how to add it copy paste? I tried that but didn't worked.
Quote from: Dhrubo on May 30, 2016, 09:25 AMI don't know how to add it copy paste?
Literally nothing good has been developed by blindly copying and pasting from other people. Learn how to actually script on your own first.
But how could I learn how to script a server. A time WiLsOn told me that delete system 32. So, I asked what to do then but he didn't wanted to answer me.
But why is the topic located in "Tutorials" section?
I don't know but I think it's tutorial that I wanna know.
To be honest, I encounter this question on a weekly basis. And my answer (and advice) is always the same: Anyone asking questions like "how do I code?" will never end up a programmer. And will never end up writing more than 2 lines of code that aren't either copied from someone else or broken as hell. You don't see a lion be like "how do I hunt?" or a bird "how do I fly?". They just know. Programmers have the curiosity, persistence and ambition to learn all by themselves.
Programming involves a lot of self documentation. About 50% of the time you document yourself. And if you can't figure out on your own how to start programming then how will you be able to search when you need to know or learn something. At what point it started to be alright to start programming when you can't even search something?
Programming is not something you learn overnight or over the course of a week. It's not like learning to ride a bicycle. It takes years of constant learning and practice. So just try to understand your current position before you decide you want to achieve something.
I'm not trying to discourage you. I'm just trying to make sure you know what to expect and not get your hopes up only to be disappointed later when you realize the truth.
Quote from: Dhrubo on May 31, 2016, 08:11 AMA time WiLsOn told me that delete system32.
:-X
/ban worked bye copy pasting but /unbanip not worked.
$h0W C0DE( show your code )
Thanks for all replies now I have learned that how to script :) so no need to help me I am scripting now. Hmm KAKAN wait showing my code:
function onPlayerCommand( player, cmd, text )
{
if (cmd == "unbanip")
{
if(!IsIPBanned(text) == true)
{
ClientMessage("Provided IP '" + text + "' was not banned previously",player,255,255,255);
}
else
{
UnbanIP(text);
ClientMessage("Unbanned IP: " + text,player,255,255,255);
}
}
}
No null checking on text, risk of crash.
No administrative check, risk of abuse.
Try to fix these two
And post your UnbanIP because that is the core of your unban command.
How to fix it? And some commands are not working when I paste check point events or something.
checkpoints are buggy shit, we won't blame you for that :P
Hmm, ok
Have u learnt to script or copy paste lol
Copy paste only.
(https://media.giphy.com/media/3o6gb6FDk0QR7Et04g/giphy.gif)
Copy pasting but I want to script not editing...
So, why not download a released script from the forum and try to understand whats in them..To understand more you can use the forum, vcmp wiki and squirrel manual.
No, I don't want a released script..I want to make a script but how can I make it?
Quote from: Dhrubo on Jun 09, 2016, 05:26 AMNo, I don't want a released script..I want to make a script but how can I make it?
You should ask this question to your brain instead of asking it to us.
Quote from: Dhrubo on Jun 09, 2016, 05:26 AMNo, I don't want a released script..I want to make a script but how can I make it?
Quote from: Murdock on May 30, 2016, 08:15 AMYou should consider some programming courses first, I wouldn't recommend starting with a non-typesafe language
Quote from: jayant on Jun 08, 2016, 04:46 PMSo, why not download a released script from the forum and try to understand whats in them..To understand more you can use the forum, vcmp wiki and squirrel manual.
Nice but I tried DMS script if I kill I get no money so I wanted to use ADM script but it shows MSVCR71.dll not found.