Help Me Please, I Got Some Questions .
#1

Hello .
Im New Here And In Pawn .
* Sorry For My Weak English *
I'd Like To Ask You Some Questions :
1 . What Is This " sizeof " ?
2 . What Return Value Mean ? ( Like What The Different In " return 1; " And " return 0; "
3 . What Is This " const " And " strtok " ?
4 . What The Number In [] Mean ( Like " tmp [256] " ) And How Can I Use This ?
Thanks , Orel .
Reply
#2

go to SAMP Wiki
Reply
#3

Quote:
Originally Posted by _Clear_
Hello .
Im New Here And In Pawn .
* Sorry For My Weak English *
I'd Like To Ask You Some Questions :
1 . What Is This " sizeof " ?
2 . What Return Value Mean ? ( Like What The Different In " return 1; " And " return 0; "
3 . What Is This " const " And " strtok " ?
4 . What The Number In [] Mean ( Like " tmp [256] " ) And How Can I Use This ?
Thanks , Orel .
1. "Sizeof" is the length of a parameter. Eg:
pawn Код:
new name[24];
GetPlayerName(playerid, name, sizeof(name));
sizeof(name)) is same as new name[24]

2. If you use "return 0" it will stop the function and it will not continue.

For other questions, I think someone else can explain them better. I know what they mean, but I can't explain them clearly.

Hope you understood even something
Reply
#4

Thank You Very Much !
Im In SAMP-Wiki Right Now .
Waiting For Other Comments . :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)