Problem with code.
#1

Код:
forward ShowJFishes(playerid,targetid);
Код:
public ShowJFishes(playerid,targetid)
{
  if(IsPlayerConnected(playerid))
	{
		new jfish = PlayerInfo[targetid][pJFish];
		new coordsstring[250];
    format(coordsstring, sizeof(coordsstring), "|-----------------FISHES------------------------|");
		SendClientMessage(playerid, COLOR_RED,coordsstring);
		format(coordsstring, sizeof(coordsstring), " -------------You have %s Fishes--------------- ",jfish);
		SendClientMessage(playerid, COLOR_WHITE,coordsstring);
		format(coordsstring, sizeof(coordsstring), "|-----------------------------------------------|");
		SendClientMessage(playerid, COLOR_RED,coordsstring);
	}
}
(44741) : error 017: undefined symbol "targetid"

i have no idea what is wrong .

Can anybody help me ?
Reply
#2

You need to define targetid, i.e. new targetid[MAX_PLAYERS];
Reply
#3

new jfish = PlayerInfo[targetid][pJFish];

>>

new jfish = PlayerInfo[playerid][pJFish];
Reply
#4

thanx for answering i got it work
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)