13.04.2014, 21:43
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Б
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Б