SA-MP Forums Archive
Question :/ - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question :/ (/showthread.php?tid=78739)



Question :/ - Hot - 22.05.2009

-> Why use !strcmp, !strlen, etc... ?
-> What's the diference between static and new. ( i.g : new gTeam[MAX_PLAYERS]; static gTeam[MAX_PLAYERS];

Help? *_*


Re: Question :/ - Weirdosport - 22.05.2009

When you put ! in front of things it means "false"... when a function returns 0 (false) and you have ! infront of that function, it becomes true.

For example, strlen returns false when the string length is 0. So:
!strlen("") = true
strlen("") = false


Re: Question :/ - Hot - 01.10.2009

Yes, and what about static and new gteam?


Re: Question :/ - Peter_Corneile - 01.10.2009

Quote:
Originally Posted by Hot
Yes, and what about static and new gteam?
Hey i wonder why too lol


Re: Question :/ - Hot - 01.10.2009

... any anwers?


Re: Question :/ - MenaceX^ - 01.10.2009

Quote:

Why use !strcmp, !strlen, etc... ?

Wiki explains both.


Re: Question :/ - Jamesy - 01.10.2009

For the answer to question two check here.


Re: Question :/ - Peter_Corneile - 01.10.2009

Aha that answers it .. Thanks Jamesy