Como arreglar el tiempo del /intentar
#1

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;}
Reply
#2

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

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

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

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
Reply
#6

que pasa con el /w
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)