- 0
Eroare in pawno
-
Similar Content
-
- 1 answer
- 123 views
-
eroare job
By viji,
- 5 answers
- 73 views
-
eroare data base
By viji,
- 2 answers
- 106 views
-
- 5 replies
- 1,585 views
-
- 2 replies
- 86 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
FloriNNN
Salut am inceput si eu recent un GM de la 0 si nu imi pot da seama cum sa rezolv acea eroare mai exact error 002: only a single statement (or expression) can follow each "case"
Eroarea se afla la linia asta: else SendClientMessage(playerid, COLOR_WHITE, "Nu esti in jurul unui job");
cod:
CMD:getjob(playerid, params[]){
Edited by FloriNNNif(PlayerJob[playerid]) return SendClientMessage(playerid, COLOR_WHITE, "Ai deja un job!");
new string[256];
switch(PlayerJob[playerid]){
case 0: {
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1764.96191, -2050.68042, 14.96930)){
PlayerJob[playerid] = 1;
format(string, sizeof(string), "Job-ul tau este acum %s.Foloseste comanda /startwork pentru a munci!", JOB_NAME1);
SendClientMessage(playerid, COLOR_CYAN, string);
}
}
case 1: {
if(IsPlayerInRangeOfPoint(playerid, 5.0, 854.8568,-605.1971,18.4219)){
PlayerJob[playerid] = 1;
format(string, sizeof(string), "Job-ul tau este acum %s.Foloseste comanda /startwork pentru a munci!", JOB_NAME2);
SendClientMessage(playerid, COLOR_CYAN, string);
}
}
else SendClientMessage(playerid, COLOR_WHITE, "Nu esti in jurul unui job");
return 1;
}
Link to comment
Share on other sites
7 answers to this question
Recommended Posts