Help with some things
#1

First of all. I have just set up my server (I just need a host and some changes) but I can't figure out the /me and /do cmds.

/me:
pawn Код:
dcmd_me(playerid, params[])
{
    new pName[24], str[128];
    GetPlayerName(playerid, pName, 24);
    if(sscanf(params, "us", pName, str)) return SendClientMessage(playerid, COLOR_RED, "/me <local IC chat>");
    format(str, sizeof(str), "%s", pName, str);
    SendClientMessageToAll(COLOR_PINK, str);
    return 0;
}
/do:
pawn Код:
dcmd_do(playerid, params[])
{
    new pName[24], str[128];
    GetPlayerName(playerid, pName, 24);
    if(sscanf(params, "us", pName, str)) return SendClientMessage(playerid, COLOR_RED, "/do <local IC chat>");
    format(str, sizeof(str), "%s ((%u))", str, pName);
    SendClientMessageToAll(COLOR_PINK, str);
    return 0;
}
When I get IG (with my name Don Rivera) it shows me like this. When I type /me lol it says: ERROR: /me <local IC chat>
When I type /me lol lol it shows:
yon_Rivera. (yes, not Don but yon.. )

and in my server_log:
[10:47:07] sscanf warning: Strings without a length are deprecated, please add a destination size.

Now, my other problem. When I create my account, where is it saved? And where is that folder/file located?!

please help me as soon as u can!
Reply


Messages In This Thread
Help with some things - by Rivera - 14.03.2011, 09:50
Re: Help with some things - by XFlawless - 14.03.2011, 09:51
Re: Help with some things - by Rivera - 14.03.2011, 09:52
Re: Help with some things - by HyperZ - 14.03.2011, 09:54
Re: Help with some things - by Rivera - 14.03.2011, 09:55
Re: Help with some things - by HyperZ - 14.03.2011, 09:56
Re: Help with some things - by Rivera - 14.03.2011, 09:57
Re: Help with some things - by HyperZ - 14.03.2011, 09:59
Re: Help with some things - by Rivera - 14.03.2011, 10:00
Re: Help with some things - by HyperZ - 14.03.2011, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)