Invalid character constant
#1

Okay I am getting INvalid Character Constant


Код:
new sex[24];
if(sscanf(params, "s[24]", sex)) //error line
Reply
#2

Post all the code, because that line alone is fine.
Reply
#3

Erm what are you trying to do excatly?
Reply
#4

Just started making it
http://paste2.org/kcVkZsHG
Reply
#5

pawn Код:
CMD:sex(playerid,params[])
{
    new sex[24];
    if(sscanf(params, "s[24]", sex)) return 0; //you must to do something...
    return 1;
}
Reply
#6

You are either not posting all of the code, or actually only have that much done.
If that's the case, you have to add more, otherwise you're creating a if statement that's not doing anything
which is why you're getting a warning/error. Finish the command, and see if the error remains.

Orrrrr
pawn Код:
CMD:sex(playerid,params[])
{
    new sex[24];
    if(sscanf(params, "s[24]", sex)) return SendClientMessage(playerid, -1, "USAGE: /sex [SexText?]");
    return 1;
}
Reply
#7

Yeah but I am still getting same error even with just that code you gave me
Reply
#8

I feel like you're leaving out part of your code then.
Because our code compiles fine for me.
Reply
#9

Nope :/ nothing...
Reply
#10

Please view your PM's.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)