[Ajuda] salбrio [nгo compila] - 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] salбrio [nгo compila] (
/showthread.php?tid=506671)
salбrio [nгo compila] -
fURYKiNG - 13.04.2014
Salve Mlkada , Entao Como Podem Ter Visto No Titulo Meu GM N Compila Com Esse Sistema de Salario E Gostaria de ver se podem me ajudar.
Aii Vai os Erros :
\gamemodes\VR.pwn(5307) : warning 219: local variable "min" shadows a variable at a preceding level
\gamemodes\GM.pwn(5314) : error 017: undefined symbol "worldTime"
\gamemodes\GM.pwn(5314) : warning 215: expression has no effect
\gamemodes\GM.pwn(5315) : error 017: undefined symbol "worldTime"
\gamemodes\GM.pwn(5315) : warning 215: expression has no effect
\gamemodes\GM.pwn(5316) : error 017: undefined symbol "worldTime"
\gamemodes\GM.pwn(5320) : error 017: undefined symbol "playerid"
\gamemodes\GM.pwn(5321) : error 017: undefined symbol "playerid"
\gamemodes\GM.pwn(5322) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
AGORA O CODIGO.
-----------------------
// EM ONGAMEMODINIT COLOQUEI ISSO
SetTimer("MTempo",1000,true);
// NO FINAL DO GM COLOQUEI
forward Tempo();
forward MTempo();
public MTempo() {
new hora,min,sec;
gettime(hora,min,sec);
SetWorldTime(hora);
return 1;
}
public Tempo()
{
worldTime++;
worldTime%=24;
SetWorldTime(worldTime);
for(new i=0; i<MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)){
if (APlayerData[playerid][PlayerVIP] >= 1) {
SendClientMessage(playerid, 0xFF0000FF, "[SALARIO-VIP]Parabens Voce Recebeu Seu Salario R$1.000000");
GivePlayerMoney(playerid, 1000000);
}
}
}
}
// OBS SO QUERO QUE OS VIP RECEBA O SALARIO DE 1KK
GRATO DESDE JБ
Re: [AJUDA]SALARIO [NAO COMPILA]. -
Stroon - 13.04.2014
Coloque o cod dentro das tag's [pawn*] Seu Cod aqui dentro [/pawn*], Mais sem os *
Re: [AJUDA]SALARIO [NAO COMPILA]. -
WLSF - 13.04.2014
Vocк tб copiando cуdigo, nгo vai muito longe desse jeito.
Bota no ****** tradutor que tu vai ver qual й o problema que tu tб tendo, sу pra constar, existem tutoriais уtimos no fуrum que podem te ajudar a resolver esses problemas e se tornar um bom pawnero.
FAQ
Tutoriais
OBS: Sу tou respondendo o tуpico porque tu me mandou PM, meu skype й pra uso pessoal, nгo pra tirar duvidas relacionadas a pawn, pra isso jб tem o fуrum.
Abraзos.