Advertisement
dann1s

Dinamicni Dialozi

Sep 12th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.30 KB | None | 0 0
  1. AddToDialog( playerid, id ) {
  2.  
  3.     for(new i; i < MAX_DIALOG_ITEMS; i++) {
  4.         if(DialogItem[ playerid ][ i ] == -1) {
  5.             DialogItem[ playerid ][ i ] = id;
  6.             break;
  7.         }
  8.     }
  9.    
  10. }
  11.  
  12. ResetDialogItems( playerid ) {
  13.     for(new i; i < MAX_DIALOG_ITEMS; i++) DialogItem[ playerid ][ i ] = -1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement