Please provide pastebin link in future.
Posts: 340
Threads: 12
Joined: May 2011
Reputation:
0
The title should be changed to the name of this script
Posts: 483
Threads: 41
Joined: Feb 2012
Reputation:
0
can you please say your opinion the script try it out or something
Posts: 2,863
Threads: 99
Joined: Nov 2009
Reputation:
0
It looks good, but again, the indentation really should be better (so you can remove the #pragma tabsize 0 too).
Also, ZCMD is much faster and easier to use then DCMD. When you use ZCMD you also don't have to use the '#pragma unused params'. Dnd there is SSCANF2 too, which is also better then the first SSCANF.
I also noticed you used 'strtok' in OnPlayerCommandText without doing something with it futher.
1- You shouldn't use STROK
2- When you use SSCANF(2), STRTOK isn't needed anymore.
And as last, DINI is very outdated and slow. You'd better use something as DJSON (also made by DraconBlue. Works almost the same as DINI) and Y_INI (which is harder to use then DJSON. I'd recommend you to use DJSON).
And I see this script is using the 'scriptfiles' folder, with more directories. In your .rar download you should include these folders: When a beginner is using this, his server will crash because the most beginners don't know about the scriptfiles.
Did you perhaps use some kind of (outdated) tutorial to make this?
Posts: 483
Threads: 41
Joined: Feb 2012
Reputation:
0
yes i found a tutorial so i learnt it and script this one but thanks
Posts: 320
Threads: 16
Joined: Feb 2012
Looks good but messy, You still have the OnGameModeInit in there.
pawn Код:
51.
public OnGameModeInit()
52.
{
53.
// Don't use these lines if it's a filterscript
54.
SetGameModeText("Blank Script");
55.
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
56.
return 1;
57.
}