24.12.2010, 17:52
Help what does the error mean and how can i fix it? errors on this line
Heres error
pawn Код:
CarInfo[VehicleOwned[ID]][cLicense] = tmp;
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;
}