SA-MP Forums Archive
[QUESTION] try - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [QUESTION] try (/showthread.php?tid=545107)



[QUESTION] try - LiMPiTo - 06.11.2014

some use to 'try' structure? (i think is an structure, not sure)

i mean
pawn Код:
try



Re: [QUESTION] try - Justinclaveria123 - 06.11.2014

what are you want to say?
i can't understand


Re: [QUESTION] try - LiMPiTo - 06.11.2014

Quote:
Originally Posted by Justinclaveria123
Посмотреть сообщение
what are you want to say?
i can't understand
look, write 'try' in pawn.exe i don't know why its in blue


Re: [QUESTION] try - Justinclaveria123 - 06.11.2014

Quote:
Originally Posted by LiMPiTo
Посмотреть сообщение
look, write 'try' in pawn.exe i don't know why its in blue
hmm , where did you get that code?


Re: [QUESTION] try - Vince - 06.11.2014

"try-catch" is a control structure in many languages, but it does not exist in Pawn. There are other C keywords that are highlighted in Pawno such as "void", "class", "throw", "int" and "double", none of which are valid in Pawn. The editor was probably adapted from a C editor to work with Pawn scripts and the author neglected to change the syntax highlighting.


Re: [QUESTION] try - BroZeus - 06.11.2014

It is a way of error handling...
Like if u get a error which could crash server then this would prevent it to crash..
i have used it in JAVA but never in pawn
Slice made try-catch block for pawn, you can learn about it here - https://sampforum.blast.hk/showthread.php?tid=429381


Re: [QUESTION] try - Toxik - 06.11.2014

Quote:
Originally Posted by Vince
Посмотреть сообщение
"try-catch" is a control structure in many languages, but it does not exist in Pawn. There are other C keywords that are highlighted in Pawno such as "void", "class", "throw", "int" and "double", none of which are valid in Pawn. The editor was probably adapted from a C editor to work with Pawn scripts and the author neglected to change the syntax highlighting.
im with you