Worst code snippets you encountered
#9

Quote:
Originally Posted by ColeMiner
Посмотреть сообщение
I don't! That section is for GOOD topics (shame it has fallen on hard times lately).
This thread wasn't meant to be good, I just wanted to cheer myself that I could be in worse situation, and cheer others that their code isn't so terrible!

@Cypress: I don't sell my knowledge, only my time and skills, however I'm terrible at explaining things (english being my third language doesn't help at all).

Also:

pawn Код:
for(new vehicleid = 1; vehicleid < MAX_VEHICLES; vehicleid++)
{
    new query[128], DBResult:result, field[128], var[32];
    format(query, sizeof(query), "SELECT * FROM `OtherCars` WHERE `veh_id` = '%d'", vehicleid);
    result = db_query(ServerDB, query);
    if (db_num_rows(result) != 0)
    {
        //some stuff
    }
}
I simply don't understand, the guy had to know what WHERE means, how come he didn't know that without it he can get all results at once?
Reply


Messages In This Thread
Worst code snippets you encountered - by Misiur - 03.03.2014, 15:05
Re: Worst code snippets you encountered - by NewerthRoleplay - 03.03.2014, 15:10
Re: Worst code snippets you encountered - by Vince - 03.03.2014, 15:16
Re: Worst code snippets you encountered - by FireCat - 03.03.2014, 15:17
Re: Worst code snippets you encountered - by AlonzoTorres - 03.03.2014, 15:26
Re: Worst code snippets you encountered - by Misiur - 03.03.2014, 15:27
Re: Worst code snippets you encountered - by Yves - 03.03.2014, 15:31
Re: Worst code snippets you encountered - by ColeMiner - 03.03.2014, 16:15
Re: Worst code snippets you encountered - by Misiur - 04.03.2014, 09:15
Re: Worst code snippets you encountered - by Vince - 04.03.2014, 10:34

Forum Jump:


Users browsing this thread: 2 Guest(s)