Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////
- //case 1
- ///////////////////////
- static bool:g_bSmth = false;
- public OnSomething(playerid, smth[])
- {
- if (g_bSmth)
- print("YES");
- else
- print("NO");
- printf("%d", g_bSmth);
- return 1;
- }
- //output:
- //
- //YES
- //89 which means 'Y' in ascii
- ///////////////////////////////////////////////////////////////
- //case 2
- //////////////////////////////////////////////////////////////
- static bool:g_bSmth = false;
- public OnSomething(playerid, smth[])
- {
- g_bSmth = true;
- if (g_bSmth)
- print("YES");
- else
- print("NO");
- printf("%d", g_bSmth);
- return 1;
- }
- //output:
- //
- //☺ES
- //1
- //☺ - is 1 in ascii
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement