help me - 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: help me (
/showthread.php?tid=362964)
help me -
rami.chaar2 - 26.07.2012
C:\Documents and Settings\Compaq_Owner\Desktop\New Folder\all servers\CStunting\server\gamemodes\carbon.pwn(1353 ) : error 027: invalid character constant
C:\Documents and Settings\Compaq_Owner\Desktop\New Folder\all servers\CStunting\server\gamemodes\carbon.pwn(1353 ) : error 027: invalid character constant
new Commands4[256] = " /rules - Display the server rules;\n\/kill - Commit suicide; /moneybag - Display the location of the hidden money bag;";
^ that is the code that has the error but i dont see the error on it help me plz
Re: help me -
[KHK]Khalid - 26.07.2012
\n
\/kill - it's because of this character (the backslash after the \n).
Fixed code:
pawn Код:
new Commands4[256] = " /rules - Display the server rules;\n/kill - Commit suicide; /moneybag - Display the location of the hidden money bag;";
Also the length, why 256? 128 should be fine.
Edit:
If you really need to add a backslash use \\
Code:
pawn Код:
new Commands4[256] = " /rules - Display the server rules;\n\\/kill - Commit suicide; /moneybag - Display the location of the hidden money bag;";
Re: help me -
rami.chaar2 - 26.07.2012
thx man that worked i rep you
Re: help me -
rami.chaar2 - 26.07.2012
idk why i did 256 i thought it would be better but idk alot about scripting i am new and 126 is to small
Re: help me -
[KHK]Khalid - 26.07.2012
I use
this character counter to know how many characters in a text. Well,
THIS thread will be SO useful for you read it carefully.