07.04.2014, 08:22
I was just looking back at the CNR server I'd started upon a year ago, completed till 50% or something and gave up. I literally let out a cry of surprise because it was REALLY crappy. The coding standards I'd used, the methods I'd tried and the layout, the general feel, zero modularisation and stuff. Have you ever come across code of yours that you feel... must vanish into the past... like a dark secret.. never to come back again...?
I feel like I've come a VERY long way from being that guy, to now! Do you feel so?
Example of what I did in that script -
Now I know that there are TONS of SO many better ways of doing this. How could I have been so stupid just one year ago? Probably I'll say the same the next year
I feel like I've come a VERY long way from being that guy, to now! Do you feel so?
Example of what I did in that script -
pawn Code:
new Float: store_array_1[][] =
{
entry_co-ords,
exit_co-ords
},
store_1_enter_cp,
store_1_exit_cp;
public OnGameModeInit()
{
store_1_cp = CreateDynamicCP(...);
...
return 1;
}
public OnPlayerEnterDynamicCP(playerid, cpid)
{
for(new i = 0 ... )
{
if( cpid == store_1_enter_cp )
{
.....
![Smiley](images/smilies/smile.png)