07.02.2011, 08:37
This code is just too bad. You should really convert all of your codes to dcmd/zcmd functions, and what was thinking when writing this code?! Why the hell do you use such a huge arrays?
The first string's length should be no more then 128, and after reducing the string's array, calculate what size each string needs. That would be much better instead setting 6 200 length strings.
Edit:
This is not gonna get the job done. Think of it, if a player is an admin of level 2, he won't be able to see the level 1-admin commands. What he was trying to do is to make that player with a higer admin level will be able to see their level - commands, and in addition the lower admin level commands.
pawn Код:
new adminstring1[2000];
new adminstring2[2000];
new adminstring3[2000];
new adminstring4[2000];
new adminstring5[2000];
new adminstring6[2000];
Edit:
Quote:
That is some realy awefull code them strings are gigantic!!!! Ill fix it cuz i'm bored. You also don't need to check if the player is connected because a player that isn't connected can't use commands!
pawn Код:
|