Jump to content
  • 0

Cateva intrebari


iReal.ro

Question

Am si eu o itnrebare ,mi-a adaugat cineva faza cu /ad sa dau odata la 60 secunde ! dar de cand mia bagat cand dau compile imi apare un warning !

D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(55357) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10852 bytes
Code size:          2075324 bytes
Data size:          6943960 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5184 cells (20736 bytes)
Total requirements: 9046520 bytes

1 Warning.
Alta problema este am laut un [FS] de aici dp forum si l-am pus este vorba de /plate dar faza este ca merge la toate masinile si nu vreau asta Vreau doar la masinile personale Uitati codu , ce pot modifica sa pot folosii doar la masini personale , sau daca aveti voi alt script pentru gm [pwn] pus acolo cu /v plate e si mai bine dar ce modific la asta sal fac doar pentru masini personale
#include <a_samp>

#define DIALOG_PLATE 100

new vehicleid, Float:XX,Float:YY,Float:ZZ;

public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp(cmdtext,"/plate",true) == 0)
	{
	    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	    {
			ShowPlayerDialog(playerid, DIALOG_PLATE, DIALOG_STYLE_INPUT, "Number Plate", "Enter down the new number plate:", "Change", "Cancel");
		}
		else
		{
		    SendClientMessage(playerid,-1,"ERROR: You must to be in a vehicle or to be the driver!");
		}
		return 1;
	}
	return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_PLATE)
	{
	    if(response)
	    {
	        vehicleid = GetPlayerVehicleID(playerid);
	        SetVehicleNumberPlate(vehicleid,inputtext);
	        GetVehiclePos(vehicleid,XX,YY,ZZ);
	        SetVehicleToRespawn(vehicleid);
	        SetVehiclePos(vehicleid,XX,YY,ZZ);
	        PutPlayerInVehicle(playerid,vehicleid,0);
		}
		return 1;
	}
	return 0;
}

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(55357) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"

Insemna ca nai folosit nici odata functia GetPointDistanceToPointExMorph.

Adaugi la comanda /v

else if(strcmp(x_nr,"plate",true) == 0)
{
if(PlayerInfo[playerid][pPcarkey1] == 999)
{
SendClientMessage(playerid, COLOR_GREY,"   You don't have a vehicle to respray.");
return 1;
}
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey1] || PlayerInfo[playerid][pPcarkey2])
{
new Float:x,Float:y,Float:z,Float:ang;
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"You're not in a vehicle!");
new str[1028];
format(str,1024,"{00CC66}Scrieti in cauta numarul de inmatriculare dorit!\n\n");
format(str,1024,"%s"color_red"ATENTIE!\n",str);
format(str,1024,"%s"wh"Fara numbere gen: "color_green"Maria, Cezar, Vlad, etc\n\n",str);
format(str,1024,"%s\t\t\t\t"color_red"- "color_blue"RolyPlay",str);
ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Plate Car", str ,"Yes","Cancel");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "  You are not in you're personal car!");
return 1;
}

Iar la OnDialogResponse adaugi:
if(dialogid == 171)
{
if(response)
{
new Float:x,Float:y,Float:z,Float:ang;
new idcar = GetPlayerVehicleID(playerid);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
SetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
strmid(CarInfo[idcar][cLicense], inputtext, 0, strlen(inputtext), 999);
OnPropUpdate(idcar);
}
else
{

}

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

Insemna ca nai folosit nici odata functia GetPointDistanceToPointExMorph.

Are ceva? Daca apare warningul acela in continuare?

Dupa ce a mfacut ce mi-ai zis cu "plate"

D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(2985) : error 004: function "GivePlayerCash" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3014) : error 004: function "GivePlayerCash" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3050) : error 004: function "SafeResetPlayerWeapons" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3051) : error 004: function "SafeGivePlayerWeapon" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3078) : error 004: function "SafeResetPlayerWeapons" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3601) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3613) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3625) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3637) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3641) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3653) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3657) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3661) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3665) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3669) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3673) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3677) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3681) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3693) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3697) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3701) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3705) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3709) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3721) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3725) : error 004: function "PlayerToPoint" is not implemented
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(3729) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Link to comment
Share on other sites

else if(strcmp(x_nr,"plate",true) == 0)
{
if(PlayerInfo[playerid][pPcarkey1] == 999)
{
SendClientMessage(playerid, COLOR_GREY,"   You don't have a vehicle to respray.");
return 1;
}
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey1] || PlayerInfo[playerid][pPcarkey2])
{
new Float:x,Float:y,Float:z,Float:ang;
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"You're not in a vehicle!");
new str[1028];
format(str,1024,"{00CC66}Scrieti in cauta numarul de inmatriculare dorit!\n\n");
format(str,1024,"%s"color_red"ATENTIE!\n",str);
format(str,1024,"%s"wh"Fara numbere gen: "color_green"Maria, Cezar, Vlad, etc\n\n",str);
format(str,1024,"%s\t\t\t\t"color_red"- "color_blue"RolyPlay",str);
ShowPlayerDialog(playerid,171,DIALOG_STYLE_INPUT,"{EE7777}Plate Car", str ,"Yes","Cancel");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "  You are not in you're personal car!");
return 1;
}
}

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

Ok pune si la

if(dialogid == 171)
{
	if(response)
	{
		new Float:x,Float:y,Float:z,Float:ang;
		new idcar = GetPlayerVehicleID(playerid);
		SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
		GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
		GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
		SetVehicleToRespawn(GetPlayerVehicleID(playerid));
		SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
		SetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
		strmid(CarInfo[idcar][cLicense], inputtext, 0, strlen(inputtext), 999);
		OnPropUpdate(idcar);
	}
	else
	{

	}
}

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Link to comment
Share on other sites

am facut si asa si uite

D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19881) : error 017: undefined symbol "pPcarkey1"
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19886) : error 017: undefined symbol "pPcarkey1"
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19894) : error 001: expected token: "-string end-", but found "-identifier-"
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19894) : error 017: undefined symbol "color_red"
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19894) : warning 215: expression has no effect
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19894) : warning 215: expression has no effect
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19894) : error 001: expected token: ";", but found ")"
D:\SERVER SAMP + GAMEMOD\SERVERE\SERVER 1\pawno\eGamer.pwn(19894) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 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.