23.12.2013, 11:38
Quote:
It's a good tutorial.
Although, I'd like to point out that using: pawn Code:
You also said about foreach instead of for loops for the players and foreach is really great! foreach should be used for the vehicles as well and it's very optimized. Instead of looping 2000 times for vehicles, you can add vehicleid to an Iterator and loop through the valid vehicleids. So let's say you have 2 vehicles in the server, it will only loop 2 times instead of 2000 and imagine if it had to loop many times through the vehicles. PS: It's y_commands and not Y_CMD. |
pawn Code:
CMD:mynick(playerid, params[])
{
new string[126];
format(string, sizeof(string), "%s %s %s %s %s.", GetName(playerid), GetName(playerid), GetName(playerid), GetName(playerid), GetName(playerid));
SendClientMessage(playerid, -1, string);
return 1;
}
Would it be bad?.
No understood eh very well :S.