Roleplay.pwn(547) : error 001: expected token: ")", but found "["
Roleplay.pwn(547) : warning 215: expression has no effect
Roleplay.pwn(547) : error 001: expected token: ";", but found "]"
Roleplay.pwn(547) : error 029: invalid expression, assumed zero
Roleplay.pwn(547) : fatal error 107: too many error messages on one line
new j1text[30];
switch(pInfo[targetid][pJob][1])
{
case 0: { j1text = "Unemployed"; }
case 1: { j1text = "Taxi Driver"; }
case 2: { j1text = "Mechanic"; }
case 3: { j1text = "Pizza Boy"; }
}
new j1text[15]; //No need to make this 30.
new job = PInfo[targetid][pJob][1]; //not required tho.
switch(job)
{
case 0: format(j1text, sizeof(j1text), "Unemployed");
case 1: format(j1text, sizeof(j1text), "Taxi Driver");
case 2: format(j1text, sizeof(j1text), "Mechanic");
case 3: format(j1text, sizeof(j1text), "Pizza Boy");
default: format(j1text, sizeof(j1text), "Job less");
}
error 001: expected token: ";", but found "["
new job = pInfo[targetid][pJob][1];
Error in this.
pawn Код:
pawn Код:
|
new j1text[30];
switch(pInfo[targetid][pJob])
{
case 0: { j1text = "Unemployed"; }
case 1: { j1text = "Taxi Driver"; }
case 2: { j1text = "Mechanic"; }
case 3: { j1text = "Pizza Boy"; }
}