Erros:
Codigo Sendo Usado
Code:
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(13) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(35) : error 021: symbol already defined: "RoundCounter"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(36) : error 021: symbol already defined: "RoundCounter"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(39) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(44) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(47) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(50) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(55) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(59) : error 021: symbol already defined: "KillTimer"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(61) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(64) : error 021: symbol already defined: "format"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(67) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(69) : error 021: symbol already defined: "count"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(73) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(75) : error 021: symbol already defined: "count"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(79) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(81) : error 021: symbol already defined: "count"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(85) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(87) : error 021: symbol already defined: "count"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(91) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(93) : error 021: symbol already defined: "count"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(97) : error 010: invalid function or declaration
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(99) : warning 203: symbol is never used: "Minutos"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(27) : warning 204: symbol is assigned a value that is never used: "RoundCounter"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(27 -- 99) : warning 203: symbol is never used: "Segundos2"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(27 -- 99) : warning 203: symbol is never used: "count"
C:\Users\Jefferson\Desktop\Servidores\Zombie(SAMP)\[PT-BR] Zombie Tracker\pawno\Untitled.pwn(27 -- 99) : warning 203: symbol is never used: "iround"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
22 Errors.
Code:
#include <a_samp>
#define ROUNDTEMPO 900000 // Tempo do round em segundos
new Text:RoundCount;
new RoundCounter;
new roundtime;
new Segundos[MAX_PLAYERS];
new Minutos[MAX_PLAYERS];
new MS[MAX_PLAYERS];
/* OnGameModeInit */
RoundCount = TextDrawCreate(270.000000, 397.000000, "00:00:00");
TextDrawBackgroundColor(RoundCount, 255);
TextDrawFont(RoundCount, 2);
TextDrawLetterSize(RoundCount, 0.500000, 2.199999);
TextDrawColor(RoundCount, -1);
TextDrawSetOutline(RoundCount, 1);
TextDrawSetProportional(RoundCount, 1);
/* Comando */
CMD:iround(playerid) return roundtime = SetTimerEx("RoundTime", 1000, 0, "d", playerid);
forward RoundTime(playerid);
public RoundTime(playerid)
{
RoundCounter = SetTimerEx("RoundCounter", 9, 1, "d", playerid);
MS[playerid] = 99;
Segundos[playerid] = ROUNDTEMPO;
TextDrawShowForAll(Text:RoundCount);
KillTimer(roundtime);
return 1;
}
forward RoundCounter(playerid);
public RoundCounter(playerid)
{
MS[playerid]--;
if(MS[playerid] == 0)
{
MS[playerid] = 99;
Segundos[playerid]--;
}
if(Segundos[playerid] > 60)
{
new Segundos2 = Segundos[playerid] - 60;
Segundos[playerid] = Segundos2;
Minutos[playerid]++;
}
if(Segundos[playerid] == 0 && Minutos[playerid] > 0)
{
Segundos[playerid] = 59;
Minutos[playerid]--;
}
if(Segundos[playerid] == 0 && MS[playerid] == 1)
{
TextDrawHideForAll(Text:RoundCount);
//terminou o round
KillTimer(roundtime);
}
if(Segundos[playerid] < 10)
{
new count[10];
format(count, sizeof(count), "00:0%i:%i", Segundos[playerid], MS[playerid]);
TextDrawSetString(RoundCount, count);
}
if(Segundos[playerid] >= 10)
{
new count[10];
format(count, sizeof(count), "00:%i:%i", Segundos[playerid], MS[playerid]);
TextDrawSetString(RoundCount, count);
}
if(Minutos[playerid] < 10 && Segundos[playerid] < 10)
{
new count[10];
format(count, sizeof(count), "0%i:0%i:%i",Minutos[playerid], Segundos[playerid], MS[playerid]);
TextDrawSetString(RoundCount, count);
}
if(Minutos[playerid] < 10 && Segundos[playerid] > 9)
{
new count[10];
format(count, sizeof(count), "0%i:%i:%i",Minutos[playerid], Segundos[playerid], MS[playerid]);
TextDrawSetString(RoundCount, count);
}
if(Minutos[playerid] >= 10 && Segundos[playerid] > 9)
{
new count[10];
format(count, sizeof(count), "%i:%i:%i",Minutos[playerid], Segundos[playerid], MS[playerid]);
TextDrawSetString(RoundCount, count);
}
if(Minutos[playerid] >= 10 && Segundos[playerid] < 10)
{
new count[10];
format(count, sizeof(count), "%i:0%i:%i",Minutos[playerid], Segundos[playerid], MS[playerid]);
TextDrawSetString(RoundCount, count);
}
return 1;
}
Aucun commentaire:
Enregistrer un commentaire