why? gm - 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: why? gm (
/showthread.php?tid=507594)
why? gm -
UfsDev - 18.04.2014
How To Fix These All Errors/Warning ?
+REP
Код:
CMD:teles(playerid, params[])
{
ShowPlayerDialog(playerid, 4198, DIALOG_STYLE_MSGBOX, "{FF0000}UFS {FFFFFF}- Important Teles", "{FF0000}Stunt:{FFFFFF} /Ls /Lv /Sf /Beach /Kartrace /Funstunt /Superpipe /Mc /Stuntpark /Lsrace \n/Qs /As /Loop /Superrace /Ws /Pp /Sr /Imprace /Monster /Jparty \n\n{FF0000}Deathmatches:{FFFFFF} /Wwdm\n\n{FF0000}Airports:{FFFFFF} /Aa /Lva /Lsa /Sfa \n\n{FF0000}Parkours:{FFFFFF} /Nrg1 /Parkour \n\n{FF0000}Tuning:{FFFFFF} /Neon /Loco /Arch /Sftune /Lvtune /Lstune ", "Ok", "Cancel");
return 1;
}
Код:
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4414) : error 075: input line too long (after substitutions)
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4415) : error 037: invalid string (possibly non-terminated string)
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4415) : error 017: undefined symbol "Cance"
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4416) : error 017: undefined symbol "l"
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4416) : warning 215: expression has no effect
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4416) : error 001: expected token: ";", but found ")"
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4416) : error 029: invalid expression, assumed zero
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4416) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
Re: why? gm -
Konstantinos - 18.04.2014
https://www.******.com/search?q=erro...m=122&ie=UTF-8
Re: why? gm -
iZN - 18.04.2014
Line is getting too long.
Use
strcat to concatenate your strings.
Re: why? gm -
UfsDev - 18.04.2014
C:\Users\Khan\Ufs\gamemodes\Freeroam.pwn(4414) : error 075: input line too long (after substitutions)
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Errors.
Re: why? gm -
thefatshizms - 18.04.2014
I believe you can also split it into multiple lines (don't quote me on this as I haven't scripted in a while).
pawn Код:
"some really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long string" \
"some really long stringsome really long stringsome really long stringsome really long stringsome really long stringsome really long string"
Re: why? gm -
Dignity - 18.04.2014
It means your line is too long. Did you actually pay attention to what Konstantinos and iZN said?
Re: why? gm -
UfsDev - 18.04.2014
Yup.
Re: why? gm -
UfsDev - 18.04.2014
Bump....
Re: why? gm -
Yves - 18.04.2014
Quote:
Originally Posted by UfsDev
Bump....
|
no need to bump.
anyways as you didn't really listen to what others said
this line of code is to long
thats why you getting errors
anyways try this one
Код:
ShowPlayerDialog(playerid,4198,DIALOG_STYLE_MSGBOX,"{FF0000}UFS {FFFFFF}- Important Teles", "{FF0000}Stunt:{FFFFFF} /Ls /Lv /Sf /Beach /Kartrace /Funstunt /Superpipe /Mc /Stuntpark /Lsrace \n/Qs /As /Loop /Superrace /Ws /Pp /Sr /Imprace /Monster /Jparty\n\n{FF0000}Deathmatches:{FFFFFF} /Wwdm\n\n{FF0000}Airports:{FFFFFF}/Aa /Lva /Lsa /Sfa\n\n{FF0000}Parkours:{FFFFFF}/Nrg1 /Parkour \n\n{FF0000}Tuning:{FFFFFF} /Neon /Loco /Arch /Sftune /Lvtune /Lstune", "Ok","Cancel");
or just use strcat witch is easy.
Re: why? gm -
UfsDev - 18.04.2014
+REP Yves.