20.07.2015, 16:28
Quote:
Bullshit...
If he don't know the difference between "new" and "static" he ask. So, he did it. The difference between "static" and "new" is, that the declaration of "static" can used also in filterscripts, includes and gamemodes at the same time.. The declaration of "new" can't used in filterscripts, includes and gamemodes at the same time. - Mencent |
Static variables remember their old values, and can only be used in the script in which they're declared.
Quote:
Oh ok, but 1 more question. I have an include called def.inc which has all of my arrays, enums, defines and other vars stored. If i create a connection handle for mysql in that include with static, it gives undefined symbol error, but if i create it with new, it works fine. Why is that?
|