Jump to content
  • 0

Problema Pawno


segayo

Question

Salut,am si eu o problema la pawn

Cand incerc sa fac o masina personala si dau compile imi da o eroare Pawn Compiler Library has stopped working.

Am facut asa

#include <a_samp>

new privatecar;

public OnFilterScriptInit()

{

privatecar = CreateVehicle(560,1081.1880,-322.9943,73.6979,270.7637,17,1);

return 1;

}

public OnPlayerStateChange(playerid, newstate, oldstate);

{

new vehicleid = GetPlayerVehicleID(playerid);

if(newstate == PLAYER_STATE_DRIVER)

{

if(vehicleid == privatecar)

{

if(strcmp(GetName(playerid), "BrocK", true) == 0)

{

return 1;

}

else

{

RemovePlayerFromVehicle(playerid);

}

}  }

return 1;

}

stock GetName(playerid)

{

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof name);

return name;

}

si dau compile,imi da eroare

uitati un screenshot:  http://imageshack.us/photo/my-images/845/unledawqc.png/

va rog ajutatima..Folosesc windows 7

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Trebuia pus la discutii scripting , si dupa cum vad e FilterScript , unde ai #define FILTERSCRIPT si #if definied FILTERSCRIPT.

Nu e nevoie.

Incearca asa:

#include <a_samp>

new privatecar;

public OnFilterScriptInit()
{
	privatecar = CreateVehicle(560,1081.1880,-322.9943,73.6979,270.7637,0.0,0.0,0.0,17,1);
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate);
{
	new vehicleid = GetPlayerVehicleID(playerid);

	if(newstate == PLAYER_STATE_DRIVER)
	{
		if(vehicleid == privatecar)
		{
			if(strcmp(GetName(playerid), "BrocK", true) == 0)
			{
				return 1;
			}
			else
			{
				RemovePlayerFromVehicle(playerid);
			}
		}
	}
	return 1;
}

stock GetName(playerid)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof name);
	return name;
}

Nu pusesei toti parametrii la CreateVehicle.

Link to comment
Share on other sites

Tot la fel imi da,ce este acel 0 la create veh?

CreateVehicle ala sa-l faci din nou, /save in joc si mai departe stii cred.

Incearca asa atunci:

#include <a_samp>

new privatecar;

public OnFilterScriptInit()
{
	privatecar = CreateVehicle(560,1081.1880,-322.9943,73.6979,270.7637,0.0,0.0,0.0,17,1);
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate);
{
	if(newstate == PLAYER_STATE_DRIVER)
	{
		if(GetPlayerVehicleID(playerid) == privatecar)
		{
			if(strcmp(GetName(playerid), "BrocK", true) == 0)
			{
				return 1;
			}
			else
			{
				RemovePlayerFromVehicle(playerid);
			}
		}
	}
	return 1;
}

stock GetName(playerid)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof name);
	return name;
}

Link to comment
Share on other sites

Daca pun asa imi da erori si warning,dar eu cand intru in samp_debug si dau save acolo in savedpositions imi apare asa

AddStaticVehicle(560,1079.0123,-321.9448,73.7018,0.1377,2,2); //

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(7) : warning 213: tag mismatch

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(7) : warning 213: tag mismatch

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(7) : warning 213: tag mismatch

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(7) : warning 202: number of arguments does not match definition

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(7) : warning 202: number of arguments does not match definition

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(12) : error 055: start of function body without function header

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(13) : error 010: invalid function or declaration

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(15) : error 010: invalid function or declaration

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(17) : error 010: invalid function or declaration

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(19) : error 010: invalid function or declaration

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(21) : error 010: invalid function or declaration

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(27) : error 010: invalid function or declaration

C:\Downloads\samp03csvr_R2-2_win32\privatecars.pwn(7) : warning 204: symbol is assigned a value that is never used: "privatecar"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

7 Errors.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.