Problem with public! - 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: Problem with public! (
/showthread.php?tid=646920)
Problem with public! -
Longover - 26.12.2017
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)
Re: Problem with public! -
Barnwell - 26.12.2017
can you show me the line of 1029 ?
Also show the var of ReportTime
Re: Problem with public! -
Longover - 26.12.2017
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)
Re: Problem with public! -
rfr - 26.12.2017
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.
EDIT: Problem with public! -
Longover - 26.12.2017
Quote:
Originally Posted by rfr
try forwarding it
forward Reportul(playerid);
|
Not working.
EDIT: SOLVED Thanks for responses!