[Ajuda] Como faзo para o player ganhar arma na favela ?
#1

Eu ja tentei de tudo jeito que existe tudo jeito que eu tento da erro, nгo consigo fazer que o player ganhe arma na favela , eu queria que se entrasse na gang zone que tem na favela , os players receberem armas automatico , dai quando sairem da gang zone da favela perdesse , й tгo facil mas eu nao sei '-' se alguem puder me ajudar Obrgado
Reply
#2

Olha ae uma base
pawn Код:
// ~~> Topo:

new EntrouFavela[MAX_PLAYERS], SaiuFavela[MAX_PLAYERS];

public locais(playerid)
{
for (new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
//======================= Favela ==========================
if(IsPlayerInPlace(i,2016.010986, -1161.922363, 2324.010986, -923.518310))
{
EntrouFavela[i] = 1;
if(EntrouFavela[1] == 1)
{
DMLiberado2[i] = 1;
GangZoneFlashForAll(favela,0xFFFFFFAA);
GameTextForPlayer(i,"DM Liberado",1000,1);
GivePlayerWeapon(i, 24, 999);
GivePlayerWeapon(i, 9, 1);
GivePlayerWeapon(i, 25, 999);
GivePlayerWeapon(i, 26, 999);
GivePlayerWeapon(i, 30, 999);
GivePlayerWeapon(i, 32, 999);
EntrouFavela[i] = 0;
}
else
{
if(DMLiberado2[i] == 1)
{
if(SaiuFavela[i] == 1)
{
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(favela);
ResetPlayerWeapons(i);
SaiuFavela[i] = 0;
}
}
Peguei de um tуpico
Reply
#3

como concerto isso ?

Код:
C:\Documents and Settings\Administrador\Desktop\BWC\gamemodes\BWC.pwn(18188) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrador\Desktop\BWC\gamemodes\BWC.pwn(18223) : error 030: compound statement not closed at the end of file (started at line 18213)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#4

Alguem me ajuda ?
Reply
#5

Qual й a linha, e para de double post. Na prуxima nem ajudo mais.
Reply
#6

Код:
C:\Documents and Settings\Administrador\Desktop\BWC\gamemodes\BWC.pwn(18188) : error 025: function heading differs from prototype
nessa linha cujo vocк nгo nos mostra, vocк definiu alguma parte 2 vezes e diferente.

POst o resto para termos certezas.
Reply
#7

public favelis(playerid)
{
for (new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
//======================= Favela ==========================
if(IsPlayerInPlace(i,2016.010986, -1161.922363, 2324.010986, -923.518310))
{
EntrouFavela[i] = 1;
if(EntrouFavela[1] == 1)
{
DMLiberado2[i] = 1;
GangZoneFlashForAll(favela,0xFFFFFFAA);
GameTextForPlayer(i,"DM Liberado",1000,1);
GivePlayerWeapon(i, 24, 999);
GivePlayerWeapon(i, 9, 1);
GivePlayerWeapon(i, 25, 999);
GivePlayerWeapon(i, 26, 999);
GivePlayerWeapon(i, 30, 999);
GivePlayerWeapon(i, 32, 999);
EntrouFavela[i] = 0;
}
else
{
if(DMLiberado2[i] == 1)
{
if(SaiuFavela[i] == 1)
{
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(favela);
ResetPlayerWeapons(i);
SaiuFavela[i] = 0;
}
}
Reply
#8

Sт esse codigo ae que ta dando erro !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)