Quote:
Originally Posted by Vince
This ought to work;
pawn Код:
forward Check(); public Check() { for(new i = 0; i < MAX_PLAYERS; i++) { if(!IsPlayerConnected(i)) continue;
/* Very important to decrement before comparing. If the package loading var is already 0, the function will set it to -1 and skip the following block. It will then execute the next block to set the variable back to 0.
If the package loading var is not 0, the first statement will decrement the var, but it will not send the message until the var reaches 0. */ if(--PlayerInfo[i][pPackageLoading] == 0) { SendClientMessage(i, COLOR_LIGHTBLUE, "You are now able to load more products."); continue; } if(PlayerInfo[i][pPackageLoading] < 0) { PlayerInfo[i][pPackageLoading] = 0; } } return 1; }
|
Still the same Vince, just spams the message down the page. I can't think of a way possible.. unless I use 'stock'?