String Problem or something.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: String Problem or something.. (
/showthread.php?tid=71199)
String Problem or something.. -
Snyper18 - 30.03.2009
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;
}
}
|
Re: String Problem or something.. -
Rks25 - 30.03.2009
search for rp commands and check how they have managed OOC. It seems you copied and removed unnecassary stuff.
Re: String Problem or something.. -
Snyper18 - 30.03.2009
Umh.. Kinda already did, Nothing came up :/
Re: String Problem or something.. -
Nubotron - 30.03.2009
You create "result" and don't do anything with it, so it is empty! Delete "result" and replace in format by "cmd[6]"
Re: String Problem or something.. -
Snyper18 - 30.03.2009
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