Car Mechanic
#1

Код:
C:\Documents and Settings\Kasutaja\My Documents\San Andreas Multiplayer Server\gamemodes\sg.pwn(40124) : error 017: undefined symbol "cars"
C:\Documents and Settings\Kasutaja\My Documents\San Andreas Multiplayer Server\gamemodes\sg.pwn(40125) : error 017: undefined symbol "cars"
C:\Documents and Settings\Kasutaja\My Documents\San Andreas Multiplayer Server\gamemodes\sg.pwn(40127) : error 017: undefined symbol "h"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Код:
	if(strcmp(cmd, "/leiaauto", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(Funktsioonmehaanikauto[playerid] == 0)
	    {
			  if(PlayerInfo[playerid][pJob] != 7)
			  {
			    SendClientMessage(playerid, COLOR_GREY, "[TЦЦ] Sa ei ole mehaanik!");
			    return 1;
			  }
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_GRAD2, "[KASUTAMINE] /leiaauto [sхiduki ID]");
					return 1;
				}
				tmp = strtok(cmdtext, idx);
				cars = strval(tmp); 
				if(cars < 184 || cars > 330) { SendClientMessage(playerid, COLOR_GREY, "[FUNKTSIOON] Sхiduki ID peab olema 81 kuni 330!"); return 1; }
				//AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
				SetPlayerCheckpoint(playerid,CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz],8.0);
				SendClientMessage(playerid, COLOR_WHITE, "[MEHAANIK] Auto asukoht on mдrkitud radaril. (Punane)");
				Funktsioonmehaanikauto[playerid] = 1;
			}
			else
			{
			  SendClientMessage(playerid, COLOR_GREY, "[FUNKTSIOON] Sa oled juba teinud! Mine punase markeri juurde!");
			  return 1;
			}
		}
		return 1;
	}
(40124)
Код:
cars = strval(tmp);
This will be: If you write /leiaauto (carid) then Car ID position will be showen and Mechanic must be go that marker (Reach it)
Reply


Messages In This Thread
Car Mechanic - by Mechscape - 31.03.2010, 14:30
Re: Car Mechanic - by Carlton - 31.03.2010, 14:33
Re: Car Mechanic - by Mechscape - 31.03.2010, 14:35
Re: Car Mechanic - by Carlton - 31.03.2010, 14:37
Re: Car Mechanic - by Mechscape - 31.03.2010, 14:39
Re: Car Mechanic - by rabit7 - 31.03.2010, 14:40
Re: Car Mechanic - by Carlton - 31.03.2010, 14:43
Re: Car Mechanic - by rabit7 - 31.03.2010, 14:47
Re: Car Mechanic - by Mechscape - 01.04.2010, 13:17
Re: Car Mechanic - by Thrarod - 01.04.2010, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)