09.11.2012, 15:14
Код:
C:\Users\Hellman.Hellmans-PC\Desktop\Project Roleplay\gamemodes\PRP.pwn(51023) : error 029: invalid expression, assumed zero
pawn Код:
if (PlayerInfo[playerid][pJob] > 0) {
switch(PlayerInfo[playerid][pJob])
{
case 1: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /find");
case 2: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /lawyerduty /free /defend /wanted");
case 3: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sex");
case 4: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sellpot /sellcrack /getcrack /getseeds /plantseeds /pickweed /checkweed");
case 5: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /dropcar");
case 7: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fix /nos /hyd /repair /refill /mechduty");
case 8: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /guard /frisk");
case 9: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getmats /sellmats /sellgun");
//case 10: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /sellnewcar");
case 12: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fight");
case 14: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getcrate");
//case 15: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /papers /bring /deliver");
case 17: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /fare");
case 18: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getmats /sellmats /craft");
case 19: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /selldrink");
case 20: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /loadtruck /checktruck /hijacktruck");
case 21: SendClientMessage(playerid,COLOR_WHITE,"*** JOB *** /getpizza");
}
line 51023 else
{
SendClientMessageEx(playerid, COLOR_WHITE,"You don't have a Job!");