SA-MP Forums Archive
Como arreglar el tiempo del /intentar - 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: Como arreglar el tiempo del /intentar (/showthread.php?tid=354391)



Como arreglar el tiempo del /intentar - alexan12 - 26.06.2012

Bueno lo que pasa esque tengo un intentar y no me da errores pero en el IG si ,cuando entro pongo por ejemplo /intentar Robar el auto ,bien la primera vez si me sale ,pero cuando pongo la segunda vez me dice que espere diez segundos,pasado los diez segundos me vuelve a decir eso ,osea qe solo puedo ponerlo una vez,alguien que me ayude gracias.

zcmd(intentar, playerid, params[]){
if(Intentar[playerid] == 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "Espera 10 segundos para volver a utilizar este comando!");
new randa = random(2)+1;
if(!sscanf(params, "s[128]", params[0]))
{
new string[128];
if(Info[playerid][pMaskuse] == 1)
{
if(randa == 1)
{
format(string, sizeof(string), "* Desconocido consigue %s", params[0]);
ProxDetector(3.0, playerid, string, 0x00BF60FF,0x00BF60FF,0x00BF60FF,0x00BF60FF,0x00BF 60FF);
}
else
{
format(string, sizeof(string), "* Desconocido no logra %s", params[0]);
ProxDetector(3.0, playerid, string, 0xB90000FF,0xB90000FF,0xB90000FF,0xB90000FF,0xB900 00FF);
}
Intentar[playerid] = 1;
SetTimerEx("IntentarTimer", 10000, false, "i", playerid);
}
else
{
if(randa == 1)
{
format(string, sizeof(string), "* %s consigue %s", GetPlayerNameEx(playerid), params[0]);
ProxDetector(3.0, playerid, string, 0x00BF60FF,0x00BF60FF,0x00BF60FF,0x00BF60FF,0x00BF 60FF);
}
else
{
format(string, sizeof(string), "* %s no logra %s", GetPlayerNameEx(playerid), params[0]);
ProxDetector(3.0, playerid, string, 0xB90000FF,0xB90000FF,0xB90000FF,0xB90000FF,0xB900 00FF);
}
Intentar[playerid] = 1;
SetTimerEx("IntentarTimer", 10000, false, "i", playerid);}
} else SendClientMessageEx(playerid, COLOR_GRAD2, "Utilize: /intentar <Acciуn>");
return 1;}


Re: Como arreglar el tiempo del /intentar - Bu11Sh0t - 26.06.2012

en el
pawn Код:
public IntentarTimer(playerid)
tienes esto??
pawn Код:
Intentar[playerid] = 0;



Respuesta: Como arreglar el tiempo del /intentar - alexan12 - 26.06.2012

Ninguno de los dos, donde pongo el public? ,e onplayerconnect? ,la verda esque eso estaba pensando


Re: Como arreglar el tiempo del /intentar - juank - 26.06.2012

Entonces te tiene que mandar error por que no tienes definido: IntentarTimer.


Respuesta: Como arreglar el tiempo del /intentar - alexan12 - 26.06.2012

Ya lo arreglue, tenia qu eponerlo asi
forward IntentarTimer(playerid);
public IntentarTimer(playerid)
{
Intentar[playerid] = 0;
}

Ahora si me va, gracias por todo, Ahora solo me falta lo del /w que dije antes


Re: Como arreglar el tiempo del /intentar - juank - 26.06.2012

que pasa con el /w