Pizzaboy side-job
#1

Код:
error 017: undefined symbol "Player"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Код:
        if(PizzaJob[playerid] == 11){
            PizzaJob[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid,COLOR_YELLOW,"* You have recieved $400 for delivering the pizzas.");
            Player[playerid][Money] = 400;
         }
     }
     return 1;
}
All the errors are on the "Green" line. Please help.
Reply
#2

The variable 'Player' doesn't exist. Try something like 'PlayerInfo' as 'Player' isn't the correct variable that you've got in your script.
Reply
#3

pawn Код:
if(PizzaJob[playerid] == 11){
            PizzaJob[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid,COLOR_YELLOW,"* You have recieved $400 for delivering the pizzas.");
            GivePlayerMoney(playerid, 400);

         }
     }
     return 1;
}
Reply
#4

Quote:
Originally Posted by Clad
Посмотреть сообщение
pawn Код:
if(PizzaJob[playerid] == 11){
            PizzaJob[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid,COLOR_YELLOW,"* You have recieved $400 for delivering the pizzas.");
            GivePlayerMoney(playerid, 400);

         }
     }
     return 1;
}
0 errors, but when you are finishing the routes so dont you recive any money
Reply
#5

Check your money-variable. 'Player' doens't exists. Try this:
pawn Код:
if(PizzaJob[playerid] == 11){
            PizzaJob[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
            SendClientMessage(playerid,COLOR_YELLOW,"* You have recieved $400 for delivering the pizzas.");
            PlayerInfo[playerid][Money] = 400;
         }
     }
     return 1;
}
Please check your player info variable.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)