I am running my code on compilr.com and am using C as my language. I am trying to make a simple game where you have an inventory and start out with $100. You gain money by doing jobs secretly for other players. But, I'm getting an error message that says, "Invalid initializer." What is this and how do I fix it? here is my code:
#include<stdio.h>
int main()
{
int player_cash[][3] = 100;
int player[3];
int job[][100] = {
"Text me the address of player1",
"I'll donate $100 to the your funds, if you steal the gold from player2 for me"
};
if (player_cash[1] > 5);
do job[0]
else if(player_cash[1]<5);
return 0;
}