Problem with public!
#1

Hello,im have a problem with gamemode:
Код:
public Reportul(playerid)
{
	ReportTime[playerid] = 0;
	format(reporttext[playerid], 30, "NULL");
	format(cheattext[playerid], 30, "NULL");
	reportcheater[playerid] = -1;
	reportreason[playerid] = 0;
	if(playerreported[playerid] != -1)
	{
		reportreason[playerreported[playerid]] = 0;
	}
	playerreported[playerid] = -1;
	KillTimer(timerreport[playerid]);
}
And errors:
Код:
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : error 028: invalid subscript (not an array or too many subscripts): "ReportTime"
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : warning 215: expression has no effect
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : error 001: expected token: ";", but found "]"
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : error 029: invalid expression, assumed zero
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : fatal error 107: too many error messages on one line
Please help me!
(Sorry for my bad english,im from Romania)
Reply
#2

can you show me the line of 1029 ?
Also show the var of ReportTime
Reply
#3

Quote:
Originally Posted by Barnwell
Посмотреть сообщение
can you show me the line of 1029 ?
Also show the var of ReportTime
Ok,1:How to make a variable of the reporttime?
2:Line is:
Код:
public Reportul(playerid)
Reply
#4

try forwarding it
forward Reportul(playerid);

and is Reportul a variable? If not add new Reportul[MAX_PLAYERS]; at the top of the script under your includes.
Reply
#5

Quote:
Originally Posted by rfr
Посмотреть сообщение
try forwarding it
forward Reportul(playerid);
Not working.
EDIT: SOLVED Thanks for responses!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)