Not displaying whole sentence..
#1

Hello,
i have a (/o)oc command, but i have a problem.
So when i type /o Hello, i see in the chatbox :
(([OOC] [NAME] : ello ))
I just see 'ello' so the first letter don't show up.
Here is the script, i edited 10 times, still i can't
find anything.
Quote:

if(strcmp(cmd, "/o", true) == 0){
new dir[256];
dir = strtok(cmdtext, idx);
strmid(tmp, cmdtext, 4, strlen(cmdtext));
if(!strlen(dir)) {
SendClientMessage(playerid,COLOR_RED,"USAGE: /o [message]");
return 1;
}
dir = strtok(cmdtext, idx);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string),"(([OOC] [%s]: %s ))",sendername,tmp);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
format(string, sizeof(string),"(([OOC] [%s]: %s ))",sendername,tmp);
print(string);
return 1;
}

Reply


Messages In This Thread
Not displaying whole sentence.. - by Ihsan_Cingisiz - 31.05.2010, 13:25
Re: Not displaying whole sentence.. - by (.Aztec); - 31.05.2010, 13:37
Re: Not displaying whole sentence.. - by ettans - 31.05.2010, 13:40
Re: Not displaying whole sentence.. - by MadeMan - 31.05.2010, 14:59
Re: Not displaying whole sentence.. - by Ihsan_Cingisiz - 31.05.2010, 17:20

Forum Jump:


Users browsing this thread: 5 Guest(s)