SA-MP Forums Archive
PAWNO error 076 - 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: PAWNO error 076 (/showthread.php?tid=438601)



PAWNO error 076 - Gecko75 - 21.05.2013

Код:
CMD:plate(playerid, params[])
{
	new numberplate[35], string[128];
	new vid = GetPlayerVehicleID
	if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_GREY, "unauthorized");
	if(sscanf(params,"u", numberplate)) return SCM(playerid, COLOR_GREY, "Usage: /plate [text]");
	{
		SetVehicleNumberPlate(vid, numberplate);
		format(string,sizeof(string),"{006600}[Vehicle] {AFAFAF}Plate changed to {006600}%s{AFAFAF}!", numberplate);
		SendClientMessage(playerid,COLOR_GREY,string);
	}
	return 1;
}
This is my code for a /plate command to set the numberplate.

Giving me this error constantly.

Код:
C:\Users\Scoot\Desktop\Roleplay\gamemodes\rp.pwn(3740 -- 3741) : error 076: syntax error in the expression, or invalid function call



Re: PAWNO error 076 - [ABK]Antonio - 21.05.2013

pawn Код:
new vid = GetPlayerVehicleID
to
pawn Код:
new vid = GetPlayerVehicleID(playerid);