van 1 kis problem ScreaM
(30) : error 010: invalid function or declaration
30 as sor:
mt = SetTimer(\"ModCsere\", 10*6000, true);
Igy csináltam meg:
GM elejére:
new mt;
Mode elejére
public ModCsere();
public ModCsere()
{
SendRconCommand(\"changemode mode1\");
return 1;
}
OnGamemodeInit alá:
mt = SetTimer(\"ModCsere\", 10*6000, true);
Igy 1 warning:
warning 204: symbol is assigned a value that is never used: \"mt\"
Így jó amugy?
Igy csináltam meg:
Mode elejére
public ModCsere();
public ModCsere()
{
SendRconCommand(\"changemode mode1\");
return 1;
}
Helyett:
forward ModCsere();
public ModCsere()
{
SendRconCommand(\"changemode mode1\");
return 1;
}
Ja És:
public OnGameModeExit()
{
KillTimer(mt);
}
Ja És:
public OnGameModeExit()
{
KillTimer(mt);
}
Hányszor mondjam még el nektek, hogy PUBLIC-al is jó? Nem csak forwarddal!!
Ja és KillTimeres dolgot valóban kihagytam, sry.