Help on IC chat -.- - 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)
+--- Thread: Help on IC chat -.- (
/showthread.php?tid=430146)
Help on IC chat -.- -
edgargreat - 12.04.2013
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP.pwn(46040) : error 017: undefined symbol "OOCNews"
C:\Users\aNdRe\Downloads\Horizon RP\Horizon RP\gamemodes\URP.pwn(46045) : error 017: undefined symbol "OOCNews"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
I need help on this. -.- When i put ICNews, if you talk IC it will appears Live interview Guest blahblahblah. Please help.
Re: Help on IC chat -.- -
Jstylezzz - 12.04.2013
Can you show us the code of those lines?
Re: Help on IC chat -.- -
edgargreat - 12.04.2013
Код:
if(TalkingLive[playerid] != INVALID_PLAYER_ID)
{
if(PlayerInfo[playerid][pJob] == 6 || PlayerInfo[playerid][pJob2] == 6)
{
format(string, sizeof(string), "Live News Reporter %s: %s", GetPlayerNameEx(playerid), text);
OOCNews(COLOR_LIGHTGREEN, string);
}
else
{
format(string, sizeof(string), "Live Interview Guest %s: %s", GetPlayerNameEx(playerid), text);
OOCNews(COLOR_LIGHTGREEN, string);
}
return 0;
}
Re: Help on IC chat -.- -
zDivine - 12.04.2013
This should help you.
pawn Код:
forward OOCNews(color,string[]);
pawn Код:
public OOCNews(color,string[])
{
foreach(Player, i)
{
if(!gNews[i])
{
SendClientMessageEx(i, color, string);
}
}
}
Re: Help on IC chat -.- -
edgargreat - 12.04.2013
Where should i put this?
Re: Help on IC chat -.- -
und3rcore - 12.04.2013
Quote:
Originally Posted by edgargreat
Where should i put this?
|
anywhere inside your script
Re: Help on IC chat -.- -
edgargreat - 12.04.2013
I compile it, it got no errors. But in Game, the problem is still shit -.-
Re: Help on IC chat -.- -
zDivine - 12.04.2013
Quote:
Originally Posted by edgargreat
I compile it, it got no errors. But in Game, the problem is still shit -.-
|
Give me your server IP, or add me on skype better yet. Skype: mercenary.lf