if(newkeys == KEY_YES) // Tecla [Y] < { if(gTeam[playerid] == TEAM_ZOMBIES) { if(Informacion[playerid][ClaseZombies] == 3) // Boomer { if(TiempitoVomito(playerid)){SendClientMessage(playerid, 0xFF0000FF, "[ERROR]: {FFFFFF}Puedes vomitar solo cada 40 segundos, mira la barra de vomito boomer.");return 1;} TiempoVomito[playerid] = GetTickCount(); new Float:pos[3]; GetPlayerPos(playerid, pos[0], pos[1], pos[2]); for(new i=0; i< MAX_PLAYERS ; i++) { if(IsPlayerInRangeOfPoint(i, 10.0 , pos[0], pos[1], pos[2])) { SetTimerEx("MatarTimer", 2000,0,"d",i); // Mata el timer para la victima! PlayerPlaySound(i, 1190, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~w~vomitado por ~r~boomer!!", 4000, 3); SetPlayerDrunkLevel(i, 9999); // marea TextDrawShowForPlayer(i, VistaZombie); SetPlayerTime(i, 3, 0); SetPlayerWeather(i, 45); } } } } }
if(newkeys == KEY_YES) // Tecla [Y] <
{
if(gTeam[playerid] == TEAM_ZOMBIES)
{
if(Informacion[playerid][ClaseZombies] == 3) // Boomer
{
if(TiempitoVomito(playerid)){SendClientMessage(playerid, 0xFF0000FF, "[ERROR]: {FFFFFF}Puedes vomitar solo cada 40 segundos, mira la barra de vomito boomer.");return 1;}
TiempoVomito[playerid] = GetTickCount();
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
for(new i=0; i< MAX_PLAYERS ; i++)
{
if(playerid == i) continue;
if(IsPlayerInRangeOfPoint(i, 10.0 , pos[0], pos[1], pos[2]))
{
SetTimerEx("MatarTimer", 2000,0,"d",i); // Mata el timer para la victima!
PlayerPlaySound(i, 1190, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~w~vomitado por ~r~boomer!!", 4000, 3);
SetPlayerDrunkLevel(i, 9999); // marea
TextDrawShowForPlayer(i, VistaZombie);
SetPlayerTime(i, 3, 0);
SetPlayerWeather(i, 45);
}
}
}
}
}
if(playerid == i) continue;
if(i ==playerid ) continue;
if(newkeys == KEY_YES) // Tecla [Y] <
{
if(gTeam[playerid] == TEAM_ZOMBIES)
{
if(Informacion[playerid][ClaseZombies] == 3) // Boomer
{
if(TiempitoVomito(playerid)){SendClientMessage(playerid, 0xFF0000FF, "[ERROR]: {FFFFFF}Puedes vomitar solo cada 40 segundos, mira la barra de vomito boomer.");return 1;}
TiempoVomito[playerid] = GetTickCount();
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
for(new i=0; i< MAX_PLAYERS ; i++)
{
if(i == playerid) continue;
new Conteo = 0;
if(IsPlayerInRangeOfPoint(i, 10.0 , pos[0], pos[1], pos[2]))
{
Conteo ++;
}
if(Conteo > 0)
{
SetTimerEx("MatarTimer", 2000,0,"d",i); // Mata el timer para la victima!
PlayerPlaySound(i, 1190, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~w~vomitado por ~r~boomer!!", 4000, 3);
SetPlayerDrunkLevel(i, 9999); // marea
TextDrawShowForPlayer(i, VistaZombie);
SetPlayerTime(i, 3, 0);
SetPlayerWeather(i, 45);
}
}
}
}
Si te funciona lo que te dicen, dilo y al menos agradйcelo ya que quitas las ganas de ayudarte...
pawn Код:
|
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(2281) : warning 219: local variable "Conteo" shadows a variable at a preceding level C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(2284) : error 022: must be lvalue (non-constant) C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(2284) : warning 215: expression has no effect C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(2286) : warning 213: tag mismatch C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(2286) : warning 206: redundant test: constant expression is non-zero C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(2281) : warning 204: symbol is assigned a value that is never used: "Conteo" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Cambia Conteo por otra cosa pues parece que ya la usas.
Deja las lineas de errores / warning. |
new Conteo = 0; //2312 if(IsPlayerInRangeOfPoint(i, 10.0 , pos[0], pos[1], pos[2])) { Conteo ++; //2315 } if(Conteo > 0) //2317 {
new ConteoVariable = 0; //2312
if(IsPlayerInRangeOfPoint(i, 10.0 , pos[0], pos[1], pos[2]))
{
ConteoVariable ++; //2315
}
if(ConteoVariable > 0) //2317
{
Tu fallo estб en:
pawn Код:
Asн deberнa funcionar. pawn Код:
|