09.09.2017, 14:57
0 Bugs?
First bug: you are using an full outdated saving system (DOF2)
Second bug: you are using "str" a global variable while you are using it locally so this will create so many wrrong formating for strings and so many mistakes/bugs. also with "500 cells"? that wast of shit.
Third bug: you are using "stock" in a local script, that's not an include nor module system (even modules doesn't use "stock")
Bug #4: Last function in script not needed, this can be done simpley by using #define
Bug #5: in all administrative commands you are using "SVIP(playerid)" so you are checking if player is vip, then the player will be able to use the /setvip.... to set another player vip which is terrible...
Bug #6: in /viplist you are formatting lines to be used on a dialog, note that won't return more than 1 long line because you didn't use "\n" to return to the line
Bug #7: in another command you are using " if(sscanf(params,"u",params[0])) " we'all know this won't work correctly, you are using cells to store an integer, note that params[0] is already this integer, so you should declare a new variable instand of using the native string.
Bug #8 (7.2): in /vsay you are using the samething, but you are returning only the first char of the whole text, because of using params[0] (i bet that you don't know how cells works)
Fatal Bug #9:
this won't let the DOF2 functions to work, because you already shutted it down
Conclusion: nothing will work in this script.
Now you have bugs to start fixing it ^^

Edit: @Meller https://sampforum.blast.hk/showthread.php?tid=570635 ( ͡° ͜ʖ ͡°)
First bug: you are using an full outdated saving system (DOF2)
Second bug: you are using "str" a global variable while you are using it locally so this will create so many wrrong formating for strings and so many mistakes/bugs. also with "500 cells"? that wast of shit.
Third bug: you are using "stock" in a local script, that's not an include nor module system (even modules doesn't use "stock")
Bug #4: Last function in script not needed, this can be done simpley by using #define
Bug #5: in all administrative commands you are using "SVIP(playerid)" so you are checking if player is vip, then the player will be able to use the /setvip.... to set another player vip which is terrible...
Bug #6: in /viplist you are formatting lines to be used on a dialog, note that won't return more than 1 long line because you didn't use "\n" to return to the line
Bug #7: in another command you are using " if(sscanf(params,"u",params[0])) " we'all know this won't work correctly, you are using cells to store an integer, note that params[0] is already this integer, so you should declare a new variable instand of using the native string.
Bug #8 (7.2): in /vsay you are using the samething, but you are returning only the first char of the whole text, because of using params[0] (i bet that you don't know how cells works)
Fatal Bug #9:
PHP код:
public OnFilterScriptInit()
{
DOF2_Exit();
return 1;
}
Conclusion: nothing will work in this script.
Now you have bugs to start fixing it ^^

Edit: @Meller https://sampforum.blast.hk/showthread.php?tid=570635 ( ͡° ͜ʖ ͡°)