All can help-- Sumo random vehicles.
#7

i have this code
Код:
              if(strcmp(cmdtext, "/sumo", true) == 0)
              {
				LastSkin[playerid] = GetPlayerSkin(playerid);
                inminigame[playerid] = 1;
				{if(State!=PLAYER_STATE_DRIVER)
		 		{SetPlayerPos(playerid,-1108.373901,-994.648681,169.191757);}
				else if(IsPlayerInVehicle(playerid, cartype) == 1)
				{SetVehiclePos(cartype,-1108.373901,-994.648681,169.191757);
				SetVehicleZAngle(cartype,101.732429);}
				else
				{SetPlayerPos(playerid,-1108.373901,-994.648681,169.191757);}
				GetPlayerName(playerid, pName, 30);
 	  			format(string, 280, "[MiniGame]: %s has been joined to Vehicles Sumo: (/sumo).", pName);
  	  			SendClientMessageToAll(COLOR_YELLOW, string);
		 		SendClientMessage(playerid, 0x33AA33AA,"Welcome in vehicles Sumo mini game.");
			 		//In your /sumo command add this after teleporting the player
				new Float:Angle;
				GetPlayerFacingAngle(playerid,Angle);
				sumocar = CreateVehicle(415, -1108.373901,-994.648681,169.191757, 0, 1, 60);
				PutPlayerInVehicle(playerid, sumocar, 0);
				 }

		        return 1;
				}
and i get these two errors
Код:
C:\Users\Aldion\Desktop\ADC Clan Server[v1.0.50]\gamemodes\Drift-Stunts-Freeroam.pwn(2376) : warning 202: number of arguments does not match definition
C:\Users\Admin\Desktop\Server[v1.0.50]\gamemodes\Drift-Stunts-Freeroam.pwn(2376) : error 033: array must be indexed (variable "sumocar")
C:\Users\Admin\Desktop\Server[v1.0.50]\gamemodes\Drift-Stunts-Freeroam.pwn(2377) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Please i need to fix it!
Reply


Messages In This Thread
All can help-- Sumo random vehicles. - by HotPlayer - 12.09.2011, 14:27
Re: All can help-- Sumo random vehicles. - by HotPlayer - 12.09.2011, 14:35
Re : All can help-- Sumo random vehicles. - by Soumi - 12.09.2011, 14:44
Re: All can help-- Sumo random vehicles. - by HotPlayer - 12.09.2011, 14:55
Re : All can help-- Sumo random vehicles. - by Soumi - 12.09.2011, 15:00
Re: All can help-- Sumo random vehicles. - by HotPlayer - 12.09.2011, 15:04
Re: All can help-- Sumo random vehicles. - by HotPlayer - 12.09.2011, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)