SA-MP Forums Archive
error 010: invalid function or declaration - 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: error 010: invalid function or declaration (/showthread.php?tid=424664)



error 010: invalid function or declaration - raamiix - 23.03.2013

Can someone help me to fix this error?

Код:
  new string[256];
		format(string, sizeof(string), "((%s: %s))", GetPlayerNameEx(playerid), params);
		OOCOff(COLOR_OOC,string);
		return 1;

	}
	return 1;
}
Код:
C:\Users\Ramin\Desktop\Spel\PL-RP\gamemodes\PLRP.pwn(40002) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: error 010: invalid function or declaration - Patrick - 23.03.2013

i haven't seen your full code so maybe this will not work but try it

pawn Код:
new string[256];
    format(string, sizeof(string), "((%s: %s))", GetPlayerNameEx(playerid), params);
    OOCOff(COLOR_OOC,string);
    return 1;
}



Re: error 010: invalid function or declaration - raamiix - 23.03.2013

Quote:
Originally Posted by pds2012
Посмотреть сообщение
i haven't seen your full code so maybe this will not work but try it

pawn Код:
new string[256];
    format(string, sizeof(string), "((%s: %s))", GetPlayerNameEx(playerid), params);
    OOCOff(COLOR_OOC,string);
    return 1;
}
Thanks for the help!