Advertisement
LockdateforGHS

Admin Toolkit Panel: MoneyScript

Jun 4th, 2023
1,183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. // Function to give money to a player
  4. void giveMoney(int playerId, int amount) {
  5.    
  6.    
  7.     printf("Giving $%d to player %d\n", amount, playerId);
  8. }
  9.  
  10. int main() {
  11.     int playerId;
  12.     int amount;
  13.  
  14.     printf("Enter the player ID: ");
  15.     scanf("%d", &playerId);
  16.  
  17.     printf("Enter the amount of money to give: ");
  18.     scanf("%d", &amount);
  19.  
  20.     giveMoney(playerId, amount);
  21.  
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement