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 014invalid statementnot in switch
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : warning 215expression has no effect
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : error 001expected token";"but found ":"
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : error 029invalid expressionassumed zero
C
:\Users\JIMPZA\Desktop\Kaikki santun scriptit\Project Los Angeles Roleplay\gamemodes\PLRP.pwn(6292) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

And the line 6292 Is here

PHP код:
    }
          case 
14:
        {
            
employer "S.H.A.F.T";
            switch(
PlayerInfo[targetid][pRank])
            {
                case 
1rank "Office Worker";
                case 
2rank "Agent";
                case 
3rank "Senior Agent";
                case 
4rank "Special Agent";
                case 
5rank "Assistant Director";
                case 
6rank "Director";
                default: 
rank "Intern";
            }
            switch(
PlayerInfo[targetid][pDivision])
            {
                case 
1division "General Duties";
                case 
2division "CID";
                case 
5division "IA";
                case 
6division "NSB";
                case 
8division "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?