06.11.2013, 13:27
(
Последний раз редактировалось BigETI; 06.11.2013 в 14:04.
)
Quote:
2. the second argument is used to store the data we get from the function to the string we mention
3. idk much of it xD. let me try . it is used to get the size of (or) the No. of characters used in that string?? 5. '@' ? "This forum requires that you wait 240 seconds between posts. Please try again in 6 seconds." |
I've already mentioned that... I was talking about the limits...
You just did
pawn Код:
new name[32], str [64];
GetPlayerName(playerid,name,sizeof(name));
pawn Код:
name[32]
Quote:
Hint: See SA:MP limits and there is a well know definition used in many scripts. |
sizeof can be used that way aswell:
pawn Код:
sizeof something
pawn Код:
(sizeof something)
pawn Код:
sizeof (something)
pawn Код:
(sizeof(something))
During pre-compilation sizeof simply returns the amount of cells an array has been defined.
pawn Код:
new something[16];
print(" \"sizeof something\" equals "#sizeof something".");
Код:
"sizeof something" equals 16.
This is correct.

Edit:
About 4.:
It would be very useful to explain this in the main post for other people.