About Strings
#8

You probably have something like this:
pawn Код:
CMD:chat(playerid, params[])
{
    new string[128];
    if(sscanf(params, "s", string)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /chat [text]");
    new string2[60];
    format(string2,sizeof(string2),"Admin: %s", string);
    SendClientMessageToAll(0xFFFF00FF, string2);
    return 1;
}
Notice how the string we are formatting, is actually less string length than our text length? This is most likely what you have done.

EDIT: Or possibly the other way around
Reply


Messages In This Thread
About Strings - by Zex Tan - 29.12.2012, 10:34
Re: About Strings - by Faisal_khan - 29.12.2012, 14:23
Re: About Strings - by FTLOG - 29.12.2012, 14:37
Re: About Strings - by Zex Tan - 30.12.2012, 09:09
Re: About Strings - by iggy1 - 30.12.2012, 09:56
Re: About Strings - by Konstantinos - 30.12.2012, 09:56
Re: About Strings - by Zex Tan - 30.12.2012, 09:59
Re: About Strings - by Threshold - 30.12.2012, 10:04
Re: About Strings - by Konstantinos - 30.12.2012, 10:08
Re: About Strings - by Zex Tan - 31.12.2012, 11:44

Forum Jump:


Users browsing this thread: 3 Guest(s)