SA-MP Forums Archive
[HELP] I get a error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] I get a error (/showthread.php?tid=202636)



[HELP] I get a error - Lilcuete - 24.12.2010

Help what does the error mean and how can i fix it? errors on this line
pawn Код:
CarInfo[VehicleOwned[ID]][cLicense] = tmp;
Heres error
pawn Код:
error 006: must be assigned to an array
pawn Код:
if(strcmp(cmd, "/carplate", true) == 0)
{

   new ID = GetPlayerVehicleID(playerid);
   new string[128];
   if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0x00FFFFFF, "You're not in a vehicle");
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp)) return SendClientMessage(playerid, 0x00FFFFFF, "Usage: /carplate <License Plate>");
   else
   {
       SetVehicleNumberPlate(ID, tmp);
       CarInfo[VehicleOwned[ID]][cLicense] = tmp;
       format(string,sizeof(string),"{F216FA}You've changed your{00EEFF} VehicleID: {D9FA00}%s {FAD900}plate's for: {00FF88}%d",tmp,GetVehicleModel(ID));
       SendClientMessage(playerid, 0x00FFFFFF, string);
       PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
       SaveCars();
   }
   return 1;
}