14.03.2011, 09:50
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:
/do:
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!
/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;
}
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 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!