/variable new TT, time = 5; //cmd if(!strcmp(cmdtext, "/countdown", true))return TT = SetTimer("Conteo", 1000, true); //timer forward Conteo(); public Conteo() { new str[8]; if(time>0)format(str, 5, "~R~%i", time); else str = "~G~YAA!" GameTextForAll(str, 1000, 4); time--; if(time == 0){ time = 5; KillTimer(TT); } } |
I:\server\my server\gamemodes\grandlarc.pwn(401) : warning 202: number of arguments does not match definition I:\server\my server\gamemodes\grandlarc.pwn(401) : warning 202: number of arguments does not match definition I:\server\my server\gamemodes\grandlarc.pwn(1760) : error 010: invalid function or declaration I:\server\my server\gamemodes\grandlarc.pwn(176 ![]() I:\server\my server\gamemodes\grandlarc.pwn(1776) : warning 203: symbol is never used: "gArmySpawns" I:\server\my server\gamemodes\grandlarc.pwn(1776) : warning 203: symbol is never used: "gMedicalSpawns" I:\server\my server\gamemodes\grandlarc.pwn(1776) : warning 203: symbol is never used: "gPoliceSpawns" I:\server\my server\gamemodes\grandlarc.pwn(1776) : warning 203: symbol is never used: "lastanimid" I:\server\my server\gamemodes\grandlarc.pwn(1776) : warning 203: symbol is never used: "thisanimid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
/// para iniciarlo
forward CountDownForPlayer(playerid,counts)
public CountDownForPlayer(playerid,counts)
{
SetPVarInt(playerid,"CONTEO_EN_CURSO",1);
new count_text[256];
format(count_text,sizeof(count_text),"~w~%d",counts);
if(counts > 0 && IsPlayerConnected(playerid)) {
SetPVarInt(playerid,"CONTEO_ID",SetTimerEx("CountDownForPlayer",1000,false,"ii",playerid,counts-1));
TextDrawSetString(Texto_Conteo[playerid],count_text);
TextDrawShowForAll(Texto_Conteo[playerid]);
}
else
{
TextDrawHideForAll(Texto_Conteo[playerid]);
SetPVarInt(playerid,"CONTEO_EN_CURSO",0);
}
return 1;
}
/// para detenerlo
stock StopCountDownForPlayer(playerid) {
if(GetPVarInt(playerid,"CONTEO_EN_CURSO")) {
KillTimer(GetPVarInt(playerid,"CONTEO_ID"));
SetPVarInt(playerid,"CONTEO_EN_CURSO",0);
return 1;
}
return 0;
}
new ConteoT, Tiempo = 5;
if(!strcmp(cmdtext, "/countdown", true)) return ConteoT = SetTimer("Conteo", 1000, true);
forward Conteo();
public Conteo()
{
switch(Tiempo)
{
case 0: Tiempo = 5, KillTimer(ConteoT), GameTextForAll("0",999,1);
case 1: Tiempo--, GameTextForAll("1",999,1);
case 2: Tiempo--, GameTextForAll("2",999,1);
case 3: Tiempo--, GameTextForAll("3",999,1);
case 4: Tiempo--, GameTextForAll("4",999,1);
case 5: Tiempo--, GameTextForAll("5",999,1);
}
return 1;
}
I:\server\my server\gamemodes\grandlarc.pwn(402) : warning 202: number of arguments does not match definition I:\server\my server\gamemodes\grandlarc.pwn(402) : warning 202: number of arguments does not match definition I:\server\my server\gamemodes\grandlarc.pwn(1759) : error 010: invalid function or declaration I:\server\my server\gamemodes\grandlarc.pwn(1775) : warning 203: symbol is never used: "gArmySpawns" I:\server\my server\gamemodes\grandlarc.pwn(1775) : warning 203: symbol is never used: "gMedicalSpawns" I:\server\my server\gamemodes\grandlarc.pwn(1775) : warning 203: symbol is never used: "gPoliceSpawns" I:\server\my server\gamemodes\grandlarc.pwn(1775) : warning 203: symbol is never used: "lastanimid" I:\server\my server\gamemodes\grandlarc.pwn(1775) : warning 203: symbol is never used: "thisanimid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
Esos errores son de su GM seсor uardo12, no puedo hacer nada mбs si no dispongo de los cуdigos que le provocan error.
PD: Recomiendo que estudie el lenguaje PAWNO para que usted pueda comprender el lenguaje. Un saludo. |