String Problem or something..
#1

Okay, So i made a /new command for the news group, (group , When i type /news hi.
It only broadcasts
"[CBC News] : "
And does not show the text I put?
Can someone fix this for me.

Heres the code :
Quote:

if(strcmp(cmd, "/news", true) == 0)
{
if(gTeam[playerid] ==
{
new result[64];
format(string, sizeof(string), "[ABC News] %s %s:",sendername, result);
OOCNews(COLOR_NEWS,string);
return 1;
}
}

Reply
#2

search for rp commands and check how they have managed OOC. It seems you copied and removed unnecassary stuff.
Reply
#3

Umh.. Kinda already did, Nothing came up :/
Reply
#4

You create "result" and don't do anything with it, so it is empty! Delete "result" and replace in format by "cmd[6]"
Reply
#5

Quote:
Originally Posted by Nubotron
You create "result" and don't do anything with it, so it is empty! Delete "result" and replace in format by "cmd[6]"
Actually, That didnt work xD
I found the problem. Thanks anywase
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)