Am incercat sa fac job miner si imi tot da erori de la "case"
Erorile:
D:\newsman + roll ( jumate\gamemodes\wa-rpg.pwn(5066) : warning 217: loose indentation
D:\newsman + roll ( jumate\gamemodes\wa-rpg.pwn(5066) : error 014: invalid statement; not in switch
D:\newsman + roll ( jumate\gamemodes\wa-rpg.pwn(5066) : warning 215: expression has no effect
D:\newsman + roll ( jumate\gamemodes\wa-rpg.pwn(5066) : error 001: expected token: ";", but found ":"
D:\newsman + roll ( jumate\gamemodes\wa-rpg.pwn(5066) : error 029: invalid expression, assumed zero
D:\newsman + roll ( jumate\gamemodes\wa-rpg.pwn(5066) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Si codul:
case 172:
{
DisablePlayerCheckpointEx(playerid);
CP[playerid] ++;
PlayerTextDrawSetString(playerid, InfosTD, "Du-te la ~r~~h~checkpoint-ul~w~~h~ de pe mapa pentru a duce minerul!");
SetTimerEx("HideTextdraw", 5000, 0, "%d", playerid);
PlayerTextDrawShow(playerid, InfosTD);
new rand = random(1);
switch(rand) {
case 0: SetPlayerCheckpointEx(playerid,-2079.0068,-884.1394,32.1719,2.0); // cp
case 1: SetPlayerCheckpointEx(playerid,-2081.6643,-931.5534,32.1719,2.0); // cp
}
}
case 173: {
DisablePlayerCheckpointEx(playerid);
CP[playerid] --;
PlayerTextDrawSetString(playerid, InfosTD, "Du-te la ~r~~h~checkpoint-ul~w~~h~ de pe mapa pentru a mina din nou minereurile!");
SetTimerEx("HideTextdraw", 5000, 0, "%d", playerid);
PlayerTextDrawShow(playerid, InfosTD);
new rand = random(2);
DisablePlayerCheckpointEx(playerid);
switch(rand) {
case 0: {
SetPlayerCheckpointEx(playerid, -1716.2394,-2134.1418,50.6371, 2.0);
}
case 1: {
SetPlayerCheckpointEx(playerid, -973.7756,-1484.9133,93.5230, 2.0);
}
case 2: {
SetPlayerCheckpointEx(playerid, -1785.0052,-1317.6433,33.2301, 2.0);
}
}
PlayerInfo[playerid][pMinerSkill] ++;
UpdateVar(playerid, "MinerSkill", PlayerInfo[playerid][pMinerSkill]);
GiveJobSalary(playerid);
}
}
Linia ce da erori e "case 172: {"...