Help on IC chat -.-
#1

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.
Reply
#2

Can you show us the code of those lines?
Reply
#3

Код:
	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;
	}
Reply
#4

This should help you.

pawn Код:
forward OOCNews(color,string[]);
pawn Код:
public OOCNews(color,string[])
{
    foreach(Player, i)
    {
        if(!gNews[i])
        {
            SendClientMessageEx(i, color, string);
        }
    }
}
Reply
#5

Where should i put this?
Reply
#6

Quote:
Originally Posted by edgargreat
Посмотреть сообщение
Where should i put this?
anywhere inside your script
Reply
#7

I compile it, it got no errors. But in Game, the problem is still shit -.-
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)