(62) : error 028: invalid subscript (not an array or too many subscripts): "Xx"
#5

error 033: array must be indexed (variable "model")//61

{
if(PlayerVeh[o] == playerid && model[o] != -1)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == model) // player's vehicle model and variable model is same, do code
{
GetPlayerPos(playerid,Xx,Yy,Zz);
GetPlayerFacingAngle(playerid,angle);
format(string, sizeof(string), "CreateVehicle(%d, %f, %f, %f, %0.2f, 1 ,1, 60 );\r\n", model, Xx, Yy, Zz,angle);//error line
fwrite(gFile, string);
count++;
}
}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)