[DUDA] No funciona del todo
#6

Quote:
Originally Posted by Tirael
Посмотреть сообщение
Si te funciona lo que te dicen, dilo y al menos agradйcelo ya que quitas las ganas de ayudarte...

pawn Код:
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);
                    }
                }
            }
        }
Perdуn, pero la funciуn de arriba me funcionу pero al tuya me tira esto al compilar:
Код:
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.
Reply


Messages In This Thread
[DUDA] No funciona del todo - by Matyaas - 06.07.2017, 07:59
Re: [DUDA] No funciona del todo - by Wotter - 06.07.2017, 09:13
Respuesta: [DUDA] No funciona del todo - by Tirael - 06.07.2017, 14:40
Respuesta: [DUDA] No funciona del todo - by Matyaas - 07.07.2017, 05:28
Respuesta: [DUDA] No funciona del todo - by Tirael - 07.07.2017, 16:06
Respuesta: [DUDA] No funciona del todo - by Matyaas - 07.07.2017, 23:19
Respuesta: [DUDA] No funciona del todo - by Tirael - 08.07.2017, 01:02
Respuesta: [DUDA] No funciona del todo - by Matyaas - 09.07.2017, 04:42
Respuesta: [DUDA] No funciona del todo - by Tirael - 09.07.2017, 11:23
Re: Respuesta: [DUDA] No funciona del todo - by Miguel - 09.07.2017, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)