Car spawner command problem
#1

I have an error in my command!
Here it is:

Код:
if(strcmp(cmd, "/v", true) == 0)
    {
        new Index;
		new tmp2[256]; tmp2 = strtok(cmdtext,Index);
		new tmp3[256]; tmp3 = strtok(cmdtext,Index);
	    if(!strlen(tmp)) return
		SendClientMessage(playerid, COLOR, ""RED"Usage:/car [ModelID/Name] [Colour1] [Colour2]");
		new car;
		new colour1, colour2;
   		if(!IsNumeric(tmp))
	 	car = GetVehicleModelIDFromName(tmp);
  		else car = strval(tmp);
		if(car < 400 || car > 611) return  SendClientMessage(playerid, COLOR, ""RED"ERROR: Invalid Vehicle Model ID!");
		if(!strlen(tmp2)) colour1 = random(126); else colour1 = strval(tmp2);
		if(!strlen(tmp3)) colour2 = random(126); else colour2 = strval(tmp3);
		new LVehicleID;
		new Float:X,Float:Y,Float:Z;
		new Float:Angle,int1;
		GetPlayerPos(playerid, X,Y,Z);
		GetPlayerFacingAngle(playerid,Angle);
		int1 = GetPlayerInterior(playerid);
		LVehicleID = CreateVehicle(car, X+3,Y,Z, Angle, colour1, colour2, -1);
		LinkVehicleToInterior(LVehicleID,int1);
		return 1;
	}
Erorrs:

Код:
C:\Documents and Settings\user\Desktop\server samp\gamemodes\testserver.pwn(1344) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\user\Desktop\server samp\gamemodes\testserver.pwn(1345) : error 017: undefined symbol "GetVehicleModelIDFromName"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Car spawner command problem - by IvancheBG - 08.02.2012, 10:47
Re: Car spawner command problem - by IvancheBG - 08.02.2012, 11:22
Re: Car spawner command problem - by T0pAz - 08.02.2012, 11:25
Re: Car spawner command problem - by IvancheBG - 08.02.2012, 16:51
Re: Car spawner command problem - by [XST]O_x - 08.02.2012, 16:53
Re: Car spawner command problem - by MP2 - 08.02.2012, 16:57
Re: Car spawner command problem - by IvancheBG - 08.02.2012, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)