Your scripting Pet Peeves
#9

Quote:
Originally Posted by Mionee
View Post
Defining 9001 colors and only using 4.
also, using 500 different saving engines.

pawn Code:
#include dini
#include Y_INI
#include SII
#include MySQL
I actually use both INI and MySQL. INI for gamemode configuration. MySQL for player data and bans.

Something from me:

- HUUUUUGE variables when they are not needed:
pawn Code:
new name[MAX_PLAYER_NAME+1];
new str[256]; // -___-

GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(str, sizeof(str), "Your name is: %s", name);
SendClientMessage(playerid, -1, str);
-Code indentation... It's hard to press tab key?
-Using old stuff like dini, strcmp for commands etc.
-Doing this:
pawn Code:
new var;
new var1;
new var2;
new var3;
new var4;
new var5;
new var6;
Instead of:
pawn Code:
new var[7];
Reply


Messages In This Thread
Your scripting Pet Peeves - by Mattakil - 21.02.2014, 20:42
Re: Your scripting Pet Peeves - by Dignity - 21.02.2014, 20:44
Re: Your scripting Pet Peeves - by Vince - 21.02.2014, 20:55
Re: Your scripting Pet Peeves - by MP2 - 21.02.2014, 22:08
Re: Your scripting Pet Peeves - by Scenario - 21.02.2014, 22:30
Re: Your scripting Pet Peeves - by Aerotactics - 21.02.2014, 22:40
Re: Your scripting Pet Peeves - by Dignity - 21.02.2014, 22:44
AW: Re: Your scripting Pet Peeves - by Nero_3D - 23.02.2014, 08:21
Re: Your scripting Pet Peeves - by QuaTTrO - 09.03.2014, 12:47
Re: Your scripting Pet Peeves - by ColeMiner - 09.03.2014, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)