Problems making new faction .pwn errors
#1

PHP код:
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : error 014: invalid statement; not in switch
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : warning 215: expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : error 001: expected token: ";", but found ":"
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : error 029: invalid expression, assumed zero
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : fatal error 107: too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
4 Errors
. 
And the line 6292 Is here

PHP код:
    }
          case 
14:
        {
            
employer = "S.H.A.F.T";
            switch(
PlayerInfo[targetid][pRank])
            {
                case 
1: rank = "Office Worker";
                case 
2: rank = "Agent";
                case 
3: rank = "Senior Agent";
                case 
4: rank = "Special Agent";
                case 
5: rank = "Assistant Director";
                case 
6: rank = "Director";
                default: 
rank = "Intern";
            }
            switch(
PlayerInfo[targetid][pDivision])
            {
                case 
1: division = "General Duties";
                case 
2: division = "CID";
                case 
5: division = "IA";
                case 
6: division = "NSB";
                case 
8: division = "FTO";
                default: 
division = "General Duties";
            }
        }
        default: { 
employer = "None"; division = "None"; rank = "N/A"; }
    }
    return 
1;
    }
IsARental(carid) 
And some more..I have no idea why it doesnt work,Tell me whatґs wrong
Reply
#2

Could you show whole function? Also - you can't assign strings like that
Reply
#3

Try not using a stolen leaked Project LA script...
Reply
#4

Don't = strings, use format. And can you highlight the 6292nd line?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)