30.11.2014, 15:48
Hello i Want Know How To use it And its what its doing please example and + rep
new Hitman[MAX_PLAYERS];
new anythingshere[MAX_PLAYERS];
new Hitman[MAX_PLAYERS];
new anythingshere[MAX_PLAYERS];
Originally Posted by wikipedia
In computer programming, a global variable is a variable with global scope, meaning that it is visible (hence accessible) throughout the program, unless shadowed. The set of all global variables is known as the global environment or global state.
|
new g_IsAdmin[MAX_PLAYERS];
CMD:makeadmin(playerid, params[])
{
g_IsAdmin[playerid] = 1;
return 1;
}
#undef MAX_PLAYERS #define MAX_PLAYERS 50 // For example, change 50 to what you want.
new IsLoggedIn[MAX_PLAYERS]; if (IsLoggedIn[playerid] == 0) { // Player is not logged in } else if (IsLoggedIn[playerid] == 1) { // Player is logged in }