09.11.2012, 18:11
I sort of agree with Calgon, perhaps it could be made an optional feature of the gamemode? On the other hand, I really don't see anything bad about showing scripters how it is done.
Also, I see something like this:
Question is: does that really work? I think I remember that the last time I accessed a "char"-array using square brackets, the results were not as expected... For the sake of understanding though, shouldn't it be
Also you probably assumed it is my best intention to complain things like this:
As far as I know, valid interior IDs are 0 to 19 and valid skin IDs are 0 to 299. Your field type however would allow much lengthier values and even though you don't populate the fields with larger values, a larger amount of space will be used to store the values. Refer to this.
A suitable field type for `interior` would even be TINYINT(2) and for `skin`, SMALLINT(3) will do perfectly. Some space hopefully saved!
Also, I see something like this:
pawn Код:
// Definition
new g_Logged[MAX_PLAYERS char];
// Changing it
g_Logged[playerid] = 0;
pawn Код:
g_Logged{playerid} = 0;
pawn Код:
`interior` int(11) NOT NULL, \
// ...
`skin` int(11) NOT NULL, \
A suitable field type for `interior` would even be TINYINT(2) and for `skin`, SMALLINT(3) will do perfectly. Some space hopefully saved!