help me
#1

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
Reply
#2

\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;";
Reply
#3

thx man that worked i rep you
Reply
#4

idk why i did 256 i thought it would be better but idk alot about scripting i am new and 126 is to small
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)