[Pizza Job] - Help me ! -
Reebok1 - 13.03.2014
Hi , i make a pizza job from 0 and when finished
1 ERROR ! Please help me with this .
New
AddStaticVehicle
Код:
AddStaticVehicle(448,1261.8544,-1734.2052,13.2000,358.9479,3,6); // pizzafaggio1
AddStaticVehicle(448,1257.5613,-1734.4377,13.1982,354.5661,3,6); // pizzafaggio2
AddStaticVehicle(448,1254.6229,-1734.3733,13.1930,0.0044,3,6); // pizzafaggio3
AddStaticVehicle(448,1250.0090,-1733.9241,13.1899,0.8618,3,6); // pizzafaggio4
OnPlayerCommand
Код:
if (strcmp("/pizza", cmdtext, true, 10) == 0)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
PizzaJob[playerid] = 1;
SetPlayerCheckpoint(playerid,2099.3972,-1807.3925,13.5547,10);
SendClientMessage(playerid, 0xFFFF00AA, "**Vinzator:Adu-mi te rog pizza , ca nu mai am!");
return 1;
}
SendClientMessage(playerid, 0xFFFF00AA,"Tu trebuie sa fii in PizzaBike (p/u a folosi aceasta comanda)!");
}
OnPlayerEnterCheckpoint
Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
{
if(PizzaJob[playerid] == 1){
PizzaJob[playerid] = 2;
SetPlayerCheckpoint(playerid,2099.3972,-1807.3925,13.5547,10);
SendClientMessage(playerid, 0xFFFF00AA, "**Directorul: Tine cutiile cu pizza si transportale inapoi la vinzator!");
return 1;
}
if(PizzaJob[playerid] == 2){
PizzaJob[playerid] = 3;
SetPlayerCheckpoint(playerid,1237.2640,-1725.5808,13.5709,10);
return 1;
}
if(PizzaJob[playerid] == 3){
PizzaJob[playerid] = 0;
SendClientMessage(playerid, 0xFFFF00AA, "**Vinzator: Multumesc mult !");
SendClientMessage(playerid, 0xFFFF00AA, "Felicitari ai teminat cursa . Si ai primit 3.000 $");
GivePlayerMoney(playerid, 3000);
DisablePlayerCheckpoint(playerid);
return 1;
}
OnPlayerExitVehicle
Код:
if(PizzaJob[playerid] > 0)
{
PizzaJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
Error
Код:
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(8072) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
[8072]if(PizzaJob[playerid] > 0)
{
PizzaJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
You can usse it And please help me !
Re: [Pizza Job] - Help me ! -
Reebok1 - 13.03.2014
Please Help Me !
Re: [Pizza Job] - Help me ! -
AnonScripter - 13.03.2014
show us what is (8072) line
Re: [Pizza Job] - Help me ! -
Reebok1 - 13.03.2014
if(PizzaJob[playerid] > 0) HelpMe
Код:
if(PizzaJob[playerid] > 0)
{
PizzaJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
Re: [Pizza Job] - Help me ! -
Reebok1 - 13.03.2014
help me somebody
Re: [Pizza Job] - Help me ! -
Matess - 13.03.2014
i think it's OK... give us more code.. full public etc
Re: [Pizza Job] - Help me ! -
Ruben_Alonso - 13.03.2014
Hello Reebok1, if you only have 1 error, then the solution must be this one:
Swap:
To
pawn Код:
new PizzaJob[MAX_PLAYERS];
Re: [Pizza Job] - Help me ! -
Reebok1 - 13.03.2014
No man not work
Код:
C:\Users\User\Desktop\Crown RPG NewBase\gamemodes\Rp.pwn(8072) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
if(PizzaJob[playerid] > 0)
Re: [Pizza Job] - Help me ! -
Matess - 13.03.2014
...MAX_PLAYERS is also number... give us the rest of code where the error is located
Re: [Pizza Job] - Help me ! -
Reebok1 - 13.03.2014
THe same problem