Bus Vozac
Postar
Pilot
Njemu kada dam postara ispisuje da je Bus Vozac i u konzoli ispise: sscanf warning: Format specifier does not match parameter count.
Dio skripte:
CMD:setjob(playerid, params[])
{
if(UlogovanProvera == 0) return Ulogovan(playerid);
if(PlayerInfo < 6) return Ovlasteni(playerid);
if(AdminDuty == 0) return Duznost(playerid);
new id, job;
if(sscanf(params, "uii", id, job))
{
SCM(playerid, -1, ""ORANGE"Koristenje:"BELA"/setjob [ID/Nick] ");
SCM(playerid, -1, ""SIVA"| (0). Nezaposlen (1). BusVozac | (2). Postar | (3). Farmer |");
SCM(playerid, -1, ""SIVA"| (4). Dostavljac | (5). PizzaBoy | (6). KosacTrave | (7). Gradjevinar | (8). Rudar");
SCM(playerid, -1, ""SIVA"| (9). Kamiondzija | (10). Pilot");
return 1;
}
if(!IsPlayerConnected(id)) return SCM(playerid, -1, ""CRVENA""BELA"Igrac nije na serveru!");
if(job == 0)
{
PlayerInfo = 0;
PlayerInfo = 0;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Skinuli ste igracu %s posao.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je skinuo posao i sada ste nezaposleni.", GetName(playerid));
}
else if(job == 1)
{
PlayerInfo = 1 ;
PlayerInfo = 3;
PlayerInfo = 0;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Bus Vozac.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Bus Vozac.", GetName(playerid));
}
else if(job == 2)
{
PlayerInfo = 2 ;
PlayerInfo = 3;
PlayerInfo = 1;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Postar.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Postar.", GetName(playerid));
}
else if(job == 3)
{
PlayerInfo = 3 ;
PlayerInfo = 4;
PlayerInfo = 2;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Farmer.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Farmer.", GetName(playerid));
}
else if(job == 4)
{
PlayerInfo = 4 ;
PlayerInfo = 2;
PlayerInfo = 3;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Dostavljac.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Dostavljac.", GetName(playerid));
}
else if(job == 5)
{
PlayerInfo = 5 ;
PlayerInfo = 4;
PlayerInfo = 4;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Pizza Boy.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Pizza Boy.", GetName(playerid));
}
else if(job == 6)
{
PlayerInfo = 6 ;
PlayerInfo = 4;
PlayerInfo = 5;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Kosac Trave.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Kosac Trave.", GetName(playerid));
}
else if(job == 7)
{
PlayerInfo = 7 ;
PlayerInfo = 5;
PlayerInfo = 6;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Gradjevinar.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Gradjevinar.", GetName(playerid));
}
else if(job == 8)
{
PlayerInfo = 8 ;
PlayerInfo = 3;
PlayerInfo = 7;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Rudar.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Rudar.", GetName(playerid));
}
else if(job == 9)
{
PlayerInfo = 9 ;
PlayerInfo = 5;
PlayerInfo = 8;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Kamiondzija.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Kamiondzija.", GetName(playerid));
}
else if(job == 10)
{
PlayerInfo = 10 ;
PlayerInfo = 4;
PlayerInfo = 9;
SavePlayer(id);
SCMF(playerid, -1, ""ORANGE" "BELA"Postavili ste igracu %s posao na Pilot.", GetName(id));
SCMF(id, -1, ""ORANGE" "BELA"Admin %s vam je postavio posao na Pilot.", GetName(playerid));
}
else return SCM(playerid, -1, ""CRVENA""BELA"Pogresan job kod!");
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):

