warning 213: tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: warning 213: tag mismatch (
/showthread.php?tid=198392)
warning 213: tag mismatch -
[M]xFire - 12.12.2010
pawn Код:
forward PayDay(ID);
public PayDay(ID)
{
if(gTeam[ID] == COP && gTeam[ID] == SWAT && gTeam[ID] == ARMY && gTeam[ID] == FBI)
{
new Float:oscore, Float:money, string[128];
oscore = GetPlayerScore(ID);
money = floatmul(oscore, 12);//line 9303
GivePlayerMoney(ID, money);
format(string,sizeof(string),"Dia de Paga. Tu recibes %s, manten tu buen trabajo!", money);
SendClientMessage(ID,0x80FF00FF,string);
}
}
Код:
X:\---\---\---\---\---.pwn(9303) : warning 213: tag mismatch
Re: warning 213: tag mismatch -
MrDeath537 - 12.12.2010
pawn Код:
forward PayDay(ID);
public PayDay(ID)
{
if(gTeam[ID] == COP && gTeam[ID] == SWAT && gTeam[ID] == ARMY && gTeam[ID] == FBI)
{
new score,
money,
string[128];
score = GetPlayerScore(ID);
money = (score * 12);
GivePlayerMoney(ID, money);
format(string,sizeof(string),"Dia de Paga. Tu recibes %i, manten tu buen trabajo!", money);
SendClientMessage(ID,0x80FF00FF,string);
}
}
Intenta con eso.
Respuesta: warning 213: tag mismatch -
[M]xFire - 12.12.2010
No, no hace la funcion... Ni con el otro code
Respuesta: warning 213: tag mismatch -
[M]xFire - 12.12.2010
En 'public OnPlayerConnect(playerid)' tengo el timer:
pawn Код:
SetTimerEx("PayDay",30000,1,"d",playerid);
talvez ese sea el problema
Re: warning 213: tag mismatch -
MrDeath537 - 12.12.2010
Ah, ya vн el problema:
pawn Код:
if(gTeam[ID] == COP && gTeam[ID] == SWAT && gTeam[ID] == ARMY && gTeam[ID] == FBI)
Si COP, SWAT, ARMY y FBI no son iguales, jamбs serб posible que se ejecute el cуdigo.
Cambialo por esto:
pawn Код:
if ((gTeam[ID] == COP) || (gTeam[ID] == SWAT) || (gTeam[ID] == ARMY) || (gTeam[ID] == FBI))
Respuesta: warning 213: tag mismatch -
[M]xFire - 12.12.2010
Gracias!