SA-MP Forums Archive
Pizzaboy side-job - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pizzaboy side-job (/showthread.php?tid=528416)



Pizzaboy side-job - zDigol - 27.07.2014

Код:
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.


Re: Pizzaboy side-job - Dubya - 27.07.2014

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


Re: Pizzaboy side-job - Clad - 28.07.2014

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;
}



Re: Pizzaboy side-job - zDigol - 28.07.2014

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


Re: Pizzaboy side-job - Sharpadox - 28.07.2014

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.