Help with a /park command
#6

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.
Reply


Messages In This Thread
Help with a /park command - by ihatetn931 - 02.02.2009, 05:11
Re: Help with a /park command - by ICECOLDKILLAK8 - 02.02.2009, 11:22
Re: Help with a /park command - by ihatetn931 - 02.02.2009, 11:56
Re: Help with a /park command - by ICECOLDKILLAK8 - 02.02.2009, 12:21
Re: Help with a /park command - by ihatetn931 - 02.02.2009, 12:30
Re: Help with a /park command - by ihatetn931 - 02.02.2009, 13:28
Re: Help with a /park command - by ICECOLDKILLAK8 - 02.02.2009, 13:55
Re: Help with a /park command - by raqa619 - 12.05.2009, 18:16

Forum Jump:


Users browsing this thread: 1 Guest(s)