Quote:
Originally Posted by -zriptarusk
Thanks weirdosport.
I will fix the stocks and update the file tomorow. Its true I didn't test some of them.
@six thing
pawn Код:
GetPlayerName(playerid, result, 256); --> GetPlayerName(playerid, result, sizeof(result));
Both stuff are correct, cause the Array size is 256. I would use sizeof if I didn't knew the array size.
The stock worked for me, I tested it.
|
I usually don't care about array sizes, but for player names i usually drop it down to 28 because thats the highest it could possibly be, and it speeds up the script a bit. So id change result[256] to result[28] just to get that little millisecond back. but it does look like a really nice include.