new info1, info2, info3, info10;
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == info1) SendClientMessage(playerid,COLOR_BLUE,"[INFO] /opengarage | /closegarage");
if(pickupid == info2) SendClientMessage(playerid,COLOR_BLUE,"[INFO] /open | /close");
if(pickupid == info3) SendClientMessage(playerid,COLOR_BLUE,"[INFO] /open | /close");
if(pickupid == info10) SendClientMessage(playerid, COLOR_RED,"[INFO] /open | /close");
return 1;
}
new CarMap1[30],CarMap2[31], CarMap3[31];
public OnPlayerSpawn(playerid)
{
if(EndRoundCounter != 0)
{
SendClientMessage(playerid, COLOR_RED,"Sorry, you can't join while the round is in progress, you have to wait ...");
SendClientMessage(playerid, COLOR_ORANGE,"While you have to wait, you can specate the ADMIN !");
GameTextForPlayer(playerid, "~y~Round in progress ...", 1250, 3);
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(playerid), SPECTATE_MODE_NORMAL);//THIS
}
else
{
for(new i; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_WHITE,"You are a derby member ! You play the derby and fight against other cars/players !");
SendClientMessage(playerid, COLOR_ORANGE,"You were put randomly in a vehicle ...");
SendClientMessage(playerid, COLOR_WHITE,"Take a look to /derbycmds and if you want to start : wait for the countdown !");
new rand1=random(30);
if(!IsPlayerInVehicle(i, CarMap1[rand1])) return PutPlayerInVehicle(playerid, CarMap1[rand1], 0);
}
}
return 1;
}
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(playerid), SPECTATE_MODE_NORMAL);//THIS
pawn Код:
|
new randomplayer = Iter_Random(Player);
info1 = CreatePickup( ... );
Why the hell did you add forward OnPlayerPickUpPickUp(playerid, pickupid); ? It's already added in a_samp...
Delete it, and it will work fine... Also, make sure you have put the pickupid infront of the pickup: pawn Код:
|
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\PAT.pwn(1336) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpPickUp") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
info1 = AddStaticPickup(1239,3, -1621.9841,683.9534,7.1875);
info2 = AddStaticPickup(1239,3, -1575.1346,657.3049,7.1901);
info3 = AddStaticPickup(1239,3, -1697.7852,688.9707,24.8906);
info10 = AddStaticPickup(1239,3, -2705.1042,401.3816,4.3672);
public OnPlayerPickUpPickup(playerid, pickupid)
pawn Код:
Pay attention to big and small letters. |
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\PAT.pwn(1336) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpPickUp") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Yes i have that ! OnPlayerPickUpPickUp(playerid, pickupid) but when i delete the forward line i get this :
Код:
C:\Users\Michael\Desktop\GTA\Eigen server\gamemodes\PAT.pwn(1336) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpPickUp") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
OnPlayerPickUpPickUp
OnPlayerPickUpPickup
No! Put attention to big laters!
pawn Код:
pawn Код:
|