22.08.2012, 11:41
estou fazendo alguns testes aqui ai deu na cabeзa de criar tipo umas gteam pro player escolher quando logar com hq e tudo + ai agora a pouco pensei em coloca carros que sу os membros dessa gTeam possam dirijir...
linha
pawn Код:
new gTeam[SLOTS];
new GroveCars[6];
public OnGameModeInit()
{
GroveCars[0] = AddStaticVehicleEx(412,2510.19995117,-1687.40002441,13.50000000,40.50000000,86,1,15); //Voodoo
GroveCars[1] = AddStaticVehicleEx(600,2473.80004883,-1690.19995117,13.39999962,0.00000000,86,1,15); //Picador
GroveCars[2] = AddStaticVehicleEx(567,2508.60009766,-1671.19995117,13.39999962,352.00000000,86,1,15); //Savanna
GroveCars[3] = AddStaticVehicleEx(492,2499.39990234,-1683.00000000,13.30000019,108.00000000,86,1,15); //Greenwood
GroveCars[4] = AddStaticVehicleEx(468,2510.00000000,-1659.30004883,13.39999962,100.00000000,86,1,15); //Sanchez
GroveCars[5] = AddStaticVehicleEx(468,2511.00000000,-1661.09997559,13.39999962,96.00000000,86,1,15); //Sanchez
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == GroveCars[0] || vehicleid == GroveCars[1] || vehicleid == GroveCars[2] || vehicleid == GroveCars[3] || vehicleid == GroveCars[4] || vehicleid == GroveCars[5] && (gTeam[playerid] == Grove) return SendClientMessage(playerid,CorGrove, "Vocк nгo й um Grove"), RemovePlayerFromVehicle(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == Aztecas) // Se Ele For Aztecas Ele Setarб Pro Local Abaixo :
{
SetPlayerTeam(playerid, 1);
SetPlayerColor(playerid, CorAztecas); // Setarб a Cor Dele Para AZUL Que й a Cor definida no Topo !
SetPlayerPos(playerid, 2232.2813,-1158.4985,29.7969); // Setarб Ele Para Estб Posiзгo
SetPlayerInterior(playerid, 0); // Setarб o Interior Dele.
}// Se Ele Escolher o Skin dos Grove. Ele Darб Spawn No Local Abaixo :
if(gTeam[playerid] == Grove) // Se Ele For Grove Ele Setarб Pro Local Abaixo :
{
SetPlayerTeam(playerid, 2);
SetPlayerColor(playerid, CorGrove); // Setarб a Cor dele Para VERDE Que й a Cor definida no Topo.
SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678);//Setarб Ele Para Estб Posiзгo
SetPlayerInterior(playerid, 0);// Setarб o Interior Dele.
}
return 1;
}
Код:
C:\Users\Villy\Desktop\iniciante\gamemodes\Freeroam.pwn(4890) : error 001: expected token: ")", but found "return" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
if(vehicleid == GroveCars[0] || vehicleid == GroveCars[1] || vehicleid == GroveCars[2] || vehicleid == GroveCars[3] || vehicleid == GroveCars[4] || vehicleid == GroveCars[5] && (gTeam[playerid] == Grove) return SendClientMessage(playerid,CorGrove, "Vocк nгo й um Grove"), RemovePlayerFromVehicle(playerid);