Ok, this is what i got, I copied it from onplayerdisconnect, I got the command and everything right i belive
Код:
if(strcmp(cmd,"/park",true)==0)
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(CarInfo); i++)
{
if(vehicleid == CarInfo[i][ownedvehicle])
{
new Float:x,Float:y,Float:z;
new Float:a;
GetVehiclePos(vehicleid, x, y, z);
GetVehicleZAngle(vehicleid, a);
CarInfo[i][cLocationx] = x;
CarInfo[i][cLocationy] = y;
CarInfo[i][cLocationz] = z;
CarInfo[i][cAngle] = a;
SendClientMessage(playerid, COLOR_GREEN, "Your car will now spawn in this spot");
return 1;
}
}
}
My errors, I can't find the define in the scirpt for vehicleid, I've looked all over, I've tried it with another devinf vehid, but when i type /park in game and blow the car, Nothing happens. It just goes to it's orginal spawn spot
C:\Users\Desktop\server\filterscripts\[FS]CarOwnership.pwn(186) : error 017: undefined symbol "vehicleid"
C:\Users\Desktop\server\filterscripts\[FS]CarOwnership.pwn(190) : error 017: undefined symbol "vehicleid"
C:\Users\Desktop\server\filterscripts\[FS]CarOwnership.pwn(191) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.