[AJUDA] Settimer - 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: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Settimer (
/showthread.php?tid=275135)
[AJUDA] Settimer -
Lipe_Stronda - 08.08.2011
Como eu faзo um timer para esse comando, um time de 10 segs.
pawn Код:
//=========================== [ Roubar 24/7 norte ] ===================================
if(strcmp(cmdtext, "/assaltar", true) == 0)
{
new pName[MAX_PLAYERS];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{00D900}%s {FFFFFF}Estб Tentando Roubar a {00D900}24/7 Do {FFFFFF}Norte", pName);
SendClientMessageToAll(CorLadrao, string);
return 1;
}
Ai quero que apareзa que ele conseguiu assaltar a loja de 24/7
pawn Код:
new pName[MAX_PLAYERS];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "{00D900}%s {FFFFFF}Conseguiu Roubar a {00D900}24/7 Do {FFFFFF}Norte", pName);
SendClientMessageToAll(CorLadrao, string);
return true;
}
Re: [AJUDA] Settimer - array13 - 08.08.2011
https://sampwiki.blast.hk/wiki/SetTimer
Re: [AJUDA] Settimer -
Lipe_Stronda - 08.08.2011
Obg.
Re: [AJUDA] Settimer -
Lipe_Stronda - 08.08.2011
Malz double, ficou um erro
pawn Код:
C:\Users\Ana e Felipe\Desktop\CopLadrao.pwn(406) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Linha: GetPlayerName(playerid, pName, sizeof(pName));
Re: [AJUDA] Settimer -
Josma_cmd - 08.08.2011
Provavelmente vocк esta usando essa sintaxe em uma callback que nгo tem o parametro playerid, como por exemplo: OnGameModeInit()
Re: [AJUDA] Settimer -
1The1AleX1 - 08.08.2011
Posta Ai A Public.
Re: [AJUDA] Settimer -
Lipe_Stronda - 08.08.2011
Resolvido!!!, obrigado por tentarem me ajudar
Re: [AJUDA] Settimer -
Shadoww5 - 08.08.2011
Vi que o problema jб foi resolvido, mas, dependendo de como vocк queira checar, use
SetTimer ou
SetTimerEx.