[Ajuda] Game Mode Sendo Criado Do 0 Deu Erro Fasendo Gang Zone!!! Ajudem-Me
#1

em por que serб!!!

Quote:

C:\Users\joao marcos\Desktop\Servidor\pawno\sv.pwn(173) : error 017: undefined symbol "ballas"
C:\Users\joao marcos\Desktop\Servidor\pawno\sv.pwn(176) : error 017: undefined symbol "ballas"
C:\Users\joao marcos\Desktop\Servidor\pawno\sv.pwn(176) : error 017: undefined symbol "CPS_AddCheckpoint"

Quote:
PHP код:
#include <a_samp>
#if defined FILTERSCRIPT
#include <cpstream> // include para que os checkpoints funcionem
#define MAX_GANGS 25 // maximo de gangs, aqui no caso serгo 3 gangs
#define ZONE_TIME 15 // tempo para dominar em segundos
//
forward ZoneCheckpointChecker(); // declaraзгo da callback para checar as gangzones
static cpzone[MAX_PLAYERS][MAX_GANGS+1],lastcp[MAX_PLAYERS]; // getar checkpoint e salvar o ultimo checkpoint em que vocк passou
new ballas,grove,swat,exercito,mafia,chineses,caminhon eiros,playboys,triads,policias,comando vermelho,TCP,ADA,policia federal,piratas,PCC,traficantes,surfistas,alqaedaFBI,hards,mendigos,frangos,coveiros,caipiras,
cpballas,cpgrove,cpswat,cpexercito,cpmafia,cpchineses,c pcaminhoneiros,cpplayboys,cptriads,cppolicias,cpco mando vermelho,cpTCP,cpADA,cppolicia federal,cppiratas,cpPCC,cptraficantes,cpsurfistascpalqaeda,cpFBI,cphards,cpmendigos,cpfrangos,cpcov eiros,cpcaipiras// declaraзгo dos checkpoints e das gangzones
new GangNames[25][] = // nome das gangs para aparecer 'A gang X doiminou mais um territуrio'
{
"ballas",
"grove",
"swat",
"exercito",
"mafia",
"chineses",
"caminhoneiros",
"playboys",
"triads",
"policias",
"comando vermelho",
"TCP",
"ADA",
"policia federal",
"piratas",
"PCC",
"traficantes",
"surfistas",
"alqaeda",
"FBI",
"hards",
"mendigos",
"frangos",
"coveiros",
"caipiras"
};
new 
pgzcolor[MAX_GANGS+1] = // cores para os plaeyrs
0xC905C9960x00FF00960x0000A0960x808000960xC0C0C0960xFF80C0960x00FFFF960x408080960x00FF004B0x0000FF960xFF0000960x80FFFF960xFFFFFF96,0x53472D960xE6E600960xFFA980960x800040960xFFFFAA960xEC4D00960x808080960x00C122960x9B9B00960xDA1B20960x400040960x8A450096 // igual
};
new 
gzcolor[MAX_GANGS+1] = // cores para as gangzones
{
0xC905C9960x00FF00960x0000A0960x808000960xC0C0C0960xFF80C0960x00FFFF960x408080960x00FF004B0x0000FF960xFF0000960x80FFFF960xFFFFFF96,0x53472D960xE6E600960xFFA980960x800040960xFFFFAA960xEC4D00960x808080960x00C122960x9B9B00960xDA1B20960x400040960x8A450096 // igual
};
main()
{
print(
"\n----------------------------------");
print(
" BRASIL SV TDM [3.0] MATA MATA ");
print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetGameModeText("BRASIL SV TDM [3.0] MATA MATA");
SetTimer("ZoneCheckpointChecker"1000true); // timer para a callback
//ballas
AddPlayerClass(102,2303.6819,-1630.4944,14.5754,189.4422,0,0,0,0,0,0); // skin para gang
AddPlayerClass(103,2303.6819,-1630.4944,14.5754,189.4422,0,0,0,0,0,0); // skin para gang
AddPlayerClass(104,2303.6819,-1630.4944,14.5754,189.4422,0,0,0,0,0,0); // skin para gang
//groves
AddPlayerClass(1052532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1062532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1072532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(02532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2702532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//swat
AddPlayerClass(2802532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//exercito
AddPlayerClass(2872532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//mafia
AddPlayerClass(2942532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2962532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2952532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//chineses
AddPlayerClass(1232532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2632532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//caminhoneiros
AddPlayerClass(2612532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2012532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2022532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//playboys
AddPlayerClass(212532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(222532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(232532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//triads
AddPlayerClass(1172532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1182532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1202532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//policia
AddPlayerClass(2802532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2652532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2662532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2672532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//comando vermelho
AddPlayerClass(192532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1702532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1802532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//TCP
AddPlayerClass(1792532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1832532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//ADA
AddPlayerClass(1732532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1742532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1752532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//policia Federal
AddPlayerClass(2832532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2882532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//piratas
AddPlayerClass(1082532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1092532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1102532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//PCC
AddPlayerClass(52532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2712532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(222532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//traficantes
AddPlayerClass(212532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(282532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(292532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//surfistas
AddPlayerClass(182532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(972532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1402532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//alqaeda
AddPlayerClass(1212532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(722532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(712532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//FBI
AddPlayerClass(2862532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1412532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//Hards
AddPlayerClass(532532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1362532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(2102532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//Mendingos
AddPlayerClass(2302532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1342532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1372532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//frangos
AddPlayerClass(1552532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1672532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//coveiros
AddPlayerClass(1622532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(782532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//caipiras
AddPlayerClass(1582532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1612532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(1982532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
    
ballas GangZoneCreate(1862,543, -1279,1922079,305, -1141,021); // cria gangzone para a gang 1
ballas CPS_AddCheckpoint(1999,445, -1231,8191999,445, -1231,819);
    return 
1;
}
public 
OnGameModeExit()
{
return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
SetPlayerPos(playerid1958.37831343.157215.3746);
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
return 
1;
}
public 
OnPlayerConnect(playerid)
{
return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
return 
1;
}
public 
OnPlayerSpawn(playerid)
{
return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
return 
1;
}
public 
OnPlayerText(playeridtext[])
{
return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
if (
strcmp("/mycommand"cmdtexttrue10) == 0)
{
return 
1;
}
return 
SendClientMessage(playerid, -1,"ERRO: Este Comando Nгo Existe No Nosso Servidor");
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
return 
1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
return 
1;
}
public 
OnPlayerStateChange(playeridnewstateoldstate)
{
return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
return 
1;
}
public 
OnPlayerLeaveCheckpoint(playerid)
{
return 
1;
}
public 
OnPlayerEnterRaceCheckpoint(playerid)
{
return 
1;
}
public 
OnPlayerLeaveRaceCheckpoint(playerid)
{
return 
1;
}
public 
OnRconCommand(cmd[])
{
return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
return 
1;
}
public 
OnObjectMoved(objectid)
{
return 
1;
}
public 
OnPlayerObjectMoved(playeridobjectid)
{
return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
return 
1;
}
public 
OnVehicleMod(playeridvehicleidcomponentid)
{
return 
1;
}
public 
OnVehiclePaintjob(playeridvehicleidpaintjobid)
{
return 
1;
}
public 
OnVehicleRespray(playeridvehicleidcolor1color2)
{
return 
1;
}
public 
OnPlayerSelectedMenuRow(playeridrow)
{
return 
1;
}
public 
OnPlayerExitedMenu(playerid)
{
return 
1;
}
public 
OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
return 
1;
}
public 
OnRconLoginAttempt(ip[], password[], success)
{
return 
1;
}
public 
OnPlayerUpdate(playerid)
{
return 
1;
}
public 
OnPlayerStreamIn(playeridforplayerid)
{
return 
1;
}
public 
OnPlayerStreamOut(playeridforplayerid)
{
return 
1;
}
public 
OnVehicleStreamIn(vehicleidforplayerid)
{
return 
1;
}
public 
OnVehicleStreamOut(vehicleidforplayerid)
{
return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
return 
1;
}
public 
OnPlayerClickPlayer(playeridclickedplayeridsource)
{
return 
1;

Reply
#2

Nossa man, esse code tб um lixo. Para de copiar comeзe a criar, mesmo que tenha dificuldades. Dessa forma nгo vai aprender porra nenhuma.
Nгo entendi o porque de vocк ter tirado todas os ponto e colocado virgula nas divisorias das coordenadas. D;
Код:
ballas = CPS_AddCheckpoint(1999,445, -1231,819, 1999,445, -1231,819);
Porque vocк esta definindo "ballas" duas vezes ? Atualize sua include cpstream.
Reply
#3

aff nao copiei de niguem ta maluco cara viaja nao eu msm fiz so to pegando do tutorial como faiz
Reply
#4

pronto check pont arrumado e o gangzone
Reply
#5

Quote:
Originally Posted by joaobgnc
Посмотреть сообщение
aff nao copiei de niguem ta maluco cara viaja nao eu msm fiz so to pegando do tutorial como faiz
Hum, tem forward e settimer de uma public que nгo existe no seu GameMode.
Reply
#6

aff ainda ta dando erro
Reply
#7

Й problema na junta.
Reply
#8

amanha resolvo isso agora vo ir dormir como ta na signature fasendo sem pressa!!!
Reply
#9

Quote:
Originally Posted by @FatalFormat
Посмотреть сообщение
Й problema na junta.
Junta tudo e joga fora? AUHSUAHSUAHU'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)