Problem
#1

HI!

anyone know what is the solution of this error of complie?

C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscri pts\PrivCar.pwn(32) : error 010: invalid function or declaration
Reply
#2

post the code. remeber to use the "code" tags!
Reply
#3

Код:
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\PrivCar.pwn(27) : warning 217: loose indentation
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\PrivCar.pwn(29) : warning 217: loose indentation
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\PrivCar.pwn(51) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
and with that i loose one hydra. know how solucione it?
Reply
#4

I ment:

let me see the source of PrivCar.pwn
Reply
#5

all what is in PrivCar.pwn ?
Reply
#6

Yes, and put it in the code tag.
like this:

Код:
im a code tag!
Reply
#7

Код:
//Private Car script by Sinbad
//Please dont remove the credits



#include <a_samp>
//cars
new damoncar;
//icons
//colors
#define red 		 0xFF0000AA
#define green 		 0x33FF33AA
#define yellow 		 0xFFFF00AA


public OnFilterScriptInit()
{
  print("************************************");
  print("*                 *");
  print("*   -----------------------   *");
  print("*   | Private Cars V 1.0 |   *");
  print("*   -----------------------   *");
  print("*      By Sinbad       *");
  print("*                 *");
  print("************************************");

   damoncar = AddStaticVehicle(520,2193.9146,1674.6368,21.0974,195.8500,0,0); // hydra3333
	 damoncar = AddStaticVehicle(520,2173.7791,1686.2629,21.0819,179.0718,0,0);
  	return 1;
	}
public OnPlayerStateChange(playerid,newstate, oldstate)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	new pname[MAX_PLAYER_NAME];

	GetPlayerName(playerid,pname,sizeof pname);

	if (newstate == PLAYER_STATE_DRIVER)
	{
    if (vehicleid == damoncar)
		{

		 if(strcmp(pname,"RAT",true) ==0)
		 {
			
			{
			SendClientMessage(playerid,green,"Welcome back to your private vehicle Admin RAT");
			}

		 return 1;
		 }
		 else
		 {
			RemovePlayerFromVehicle(playerid);
			SendClientMessage(playerid,red,"This PRIVATE Vehicle belongs to RAT, you cannot drive this vehicle");
		 }
		}
	}
	return 1;
}
//End of [D0K]D4mOn's private vehicle
//Start New private vehicle here


//info icons
public OnGameModeInit()
{
  CreatePickup(1239, 1, 2167.8835, 1028.9905, 10.9766, -1);
  return 1;
}
//End of icons
//what the icons say
public OnPlayerPickUpPickup(playerid, pickupid)
{
  SendClientMessage(playerid,yellow,"This is a private vehicle");
  return 1;
}
Reply
#8

The only errors i get with that script is Bad indentation..
Reply
#9

yes, but when i join in tha server the one of the hydras arent locked only for me!
Reply
#10

The car isnt locked? or is locked only for you? i can test it.. just a sec.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)