PDA

View Full Version : PAWNO error 076


Gecko75
21/05/2013, 04:36 AM
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(3 740 -- 3741) : error 076: syntax error in the expression, or invalid function call

[ABK]Antonio
21/05/2013, 04:46 AM
new vid = GetPlayerVehicleID

to

new vid = GetPlayerVehicleID(playerid);