SA-MP Forums Archive
[Help] Some script errors | +rep - 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] Some script errors | +rep (/showthread.php?tid=575936)



[Help] Some script errors | +rep - NickMirra - 31.05.2015

Hello guys, i first like to say thank you for reading and if you do reply and try to help, it is very much appreciated and i've been scripting a new thing and i got to this part and i'm new to pawn so its alittle difficult at this point,

This is the errors,
Код:
C:\Users\Nick\Desktop\PGRP.pwn(122864) : error 029: invalid expression, assumed zero
C:\Users\Nick\Desktop\PGRP.pwn(122864) : warning 215: expression has no effect
C:\Users\Nick\Desktop\PGRP.pwn(122864) : error 001: expected token: ";", but found "]"
C:\Users\Nick\Desktop\PGRP.pwn(122864) : error 029: invalid expression, assumed zero
C:\Users\Nick\Desktop\PGRP.pwn(122864) : fatal error 107: too many error messages on one line
This is the code at line 122864

Код:
// Timer Name: Hitmark()
//TickRate: 1 Sec.
task Hitmark[1000](playerid, issuerid)
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if(GetPVarInt([i], "HitMark") > 0)
		{
	 		SetPVarInt([i], "HitMark", GetPVarInt([i], "HitMark")-1);
			if(GetPVarInt([i], "HitMark") == 0)
		{
		TextDrawHideForPlayer([i], HitMark);
	}
}



Re: [Help] Some script errors | +rep - CrazyRussainHacker - 31.05.2015

Quote:
Originally Posted by NickMirra
Посмотреть сообщение
Hello guys, i first like to say thank you for reading and if you do reply and try to help, it is very much appreciated and i've been scripting a new thing and i got to this part and i'm new to pawn so its alittle difficult at this point,

This is the errors,
Код:
C:\Users\Nick\Desktop\PGRP.pwn(122864) : error 029: invalid expression, assumed zero
C:\Users\Nick\Desktop\PGRP.pwn(122864) : warning 215: expression has no effect
C:\Users\Nick\Desktop\PGRP.pwn(122864) : error 001: expected token: ";", but found "]"
C:\Users\Nick\Desktop\PGRP.pwn(122864) : error 029: invalid expression, assumed zero
C:\Users\Nick\Desktop\PGRP.pwn(122864) : fatal error 107: too many error messages on one line
This is the code at line 122864

Код:
// Timer Name: Hitmark()
//TickRate: 1 Sec.
task Hitmark[1000](playerid, issuerid)
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if(GetPVarInt([i], "HitMark") > 0)
		{
	 		SetPVarInt([i], "HitMark", GetPVarInt([i], "HitMark")-1);
			if(GetPVarInt([i], "HitMark") == 0)
		{
		TextDrawHideForPlayer([i], HitMark);
	}
}
Update all of your plugins and post your server_log.txt here try to compile the script after updating all of your plugins and dont forget to update for plugin`s .inc file too and if it didnt work after trying everything possible to the humanity then re-locate your server files and compile it again
if it worked then +1 REP me