13.03.2014, 16:18
Hi , i make a pizza job from 0 and when finished
1 ERROR ! Please help me with this .
New
AddStaticVehicle
OnPlayerCommand
OnPlayerEnterCheckpoint
OnPlayerExitVehicle
Error
You can usse it And please help me !
1 ERROR ! Please help me with this .
New
Код:
new PizzaJob[256];
Код:
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
Код:
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)!"); }
Код:
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; }
Код:
if(PizzaJob[playerid] > 0) { PizzaJob[playerid] = 0; DisablePlayerCheckpoint(playerid); }
Код:
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); }