Error. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error. (
/showthread.php?tid=67395)
Error. -
Dreftas - 01.03.2009
Код:
C:\Documents and Settings\Andrius\Desktop\SAMP Studio\gamemodes\studio.pwn(486) : error 075: input line too long (after substitutions)
Line 486
pawn Код:
GameTextForPlayer(playerid,"~g~[CIVIL] Female",1500,4);}
That line including in:
pawn Код:
else if(classid == 52 || classid == 53 || classid == 54 || classid == 55 || classid == 56 || classid == 57 || classid == 58 || classid == 59 || classid == 60 || classid == 61 || classid == 62 || classid == 63 || classid == 64 || classid == 65 || classid == 66 || classid == 67 || classid == 68 || classid == 69 || classid == 70){
GameTextForPlayer(playerid,"~g~[CIVIL] Female",1500,4);}
How to fix?
Re: Error. -
Rks25 - 01.03.2009
The if() statement is too long!
Use an switch() statement.
Re: Error. -
MenaceX^ - 01.03.2009
The line is too long, what couldn't you understand?
Re: Error. -
MenaceX^ - 01.03.2009
That's might work.
pawn Код:
else if((classid>=52)&&(classid<=70))
Re: Error. -
Rks25 - 01.03.2009
Menace, dont double post, you could edit previous one.
Whatis so hard in a switch statement?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0..5 : GameTextForPlayer(playerid,"~p~Cops ~n~spawn",1000,5);
case 6..10 : GameTextForPlayer(playerid,"~b~Second ~n~spawn",1000,5);
... // go on
}
}
And continue...
Re: Error. -
Dreftas - 01.03.2009
Thanks :]