SA-MP Forums Archive
Problems making new faction .pwn errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problems making new faction .pwn errors (/showthread.php?tid=414780)



Problems making new faction .pwn errors - Moneymachine - 10.02.2013

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


Re: Problems making new faction .pwn errors - Misiur - 10.02.2013

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


Re: Problems making new faction .pwn errors - V415 - 16.02.2013

Try not using a stolen leaked Project LA script...


Re: Problems making new faction .pwn errors - RajatPawar - 16.02.2013

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