[Pizza Job] - Help me !
#1

Hi , i make a pizza job from 0 and when finished
1 ERROR ! Please help me with this .
New
Код:
new PizzaJob[256];
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 !
Reply
#2

Please Help Me !
Reply
#3

show us what is (8072) line
Reply
#4

if(PizzaJob[playerid] > 0) HelpMe
Код:
if(PizzaJob[playerid] > 0)
	{
	    PizzaJob[playerid] = 0;
	    DisablePlayerCheckpoint(playerid);
	}
Reply
#5

help me somebody
Reply
#6

i think it's OK... give us more code.. full public etc
Reply
#7

Hello Reebok1, if you only have 1 error, then the solution must be this one:

Swap:

pawn Код:
new PizzaJob[256];
To
pawn Код:
new PizzaJob[MAX_PLAYERS];
Reply
#8

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)
Reply
#9

...MAX_PLAYERS is also number... give us the rest of code where the error is located
Reply
#10

THe same problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)