Jump to content
  • 0

O Intrebare??


florin

Question

12 answers to this question

Recommended Posts

Ca sa nu deschid alt topic Voi intreba aici.As vrea sa fac ceva la masini sa nu se mai strice de exemplu daca lovesc o masina ii sare capote usile etc,As vrea sa fac ceva cand lovesc masina sa nu se strice deloc sa ramana intacta.Cum pot face acest lucru?

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Link to comment
Share on other sites

Ca sa nu deschid alt topic Voi intreba aici.As vrea sa fac ceva la masini sa nu se mai strice de exemplu daca lovesc o masina ii sare capote usile etc,As vrea sa fac ceva cand lovesc masina sa nu se strice deloc sa ramana intacta.Cum pot face acest lucru?

http://www.sa-mp.ro/forum/index.php/topic,269.0.html

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Te rog mult nu sunt avansat cum ma recomanda gradul,Imi poti spune si mie cum sa il bag in GM ca am prea multe FS.Multumesc!

Dai contr + f cauit

public OnPlayerConnect(playerid)

si mai jos pui

{

SetTimerEx("AutoRepair",100,true,"d",playerid);

return 1;

}

Dupai undeva jos pui

forward AutoRepair(playerid);

public AutoRepair(playerid)

{

if (IsPlayerInAnyVehicle(playerid))

    {

        new Float:health;

new vehicleid = GetPlayerVehicleID(playerid);

        GetVehicleHealth(vehicleid, health);

if (health < 987)

        {

        SetVehicleHealth(vehicleid,1000);

}

}

}

Si gata e tare usor

Link to comment
Share on other sites

Copii toate liniile in GM la locul lor, adica:

Exemplu:

In FS ai linia asta:


public OnFilterScriptInit()
{
    //alte linii
    return 1;
}
. Ca sa-l bagi in GM faci asa: 1. Cauti linia OnGameModeInit() 2. Adaugi liniile din FS aici, adica ar trebui sa fie ceva de genul asta:
public OnGameModeInit()
{
    //liniile care le aveai in GM
    //liniile din FS
    return 1;
}

Banuiesc ca ai inteles, daca nu mai viziteaza si sectiunea Tutoriale.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Am incercat cum ati zis nu vad ce nar fi bine cand compilez eruari :((

 ../include/gl_common.inc(17) : warning 219: local variable "Color1" shadows a variable at a preceding level
../include/gl_common.inc(17) : warning 219: local variable "Color2" shadows a variable at a preceding level
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(697) : error 021: symbol already defined: "TextDrawShowForPlayer"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(704) : error 021: symbol already defined: "TextDrawShowForPlayer"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(709) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(711) : error 021: symbol already defined: "SendClientMessage"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(728) : error 010: invalid function or declaration
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Commings"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Enjoyit"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Hin"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Weilcome"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "byFarsek"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "player"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "tcmds"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "thelp"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "trules"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "ttele"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Link to comment
Share on other sites

si liniile leam pus asa: 

public OnPlayerConnect(playerid)
{
    SetTimerEx("AutoRepair",100,true,"d",playerid);
	return 1;
}


	forward AutoRepair(playerid);
	public AutoRepair(playerid)
	{
 		if (IsPlayerInAnyVehicle(playerid))
    	{
        new Float:health;
		new vehicleid = GetPlayerVehicleID(playerid);
        GetVehicleHealth(vehicleid, health);
		if (health < 987)
        {
        SetVehicleHealth(vehicleid,1000);
		}
	}
}

modelcopiacopia.png

 wde [We Drift Everywhere] clan!

Link to comment
Share on other sites

Am incercat cum ati zis nu vad ce nar fi bine cand compilez eruari :((

 ../include/gl_common.inc(17) : warning 219: local variable "Color1" shadows a variable at a preceding level
../include/gl_common.inc(17) : warning 219: local variable "Color2" shadows a variable at a preceding level
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(697) : error 021: symbol already defined: "TextDrawShowForPlayer"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(704) : error 021: symbol already defined: "TextDrawShowForPlayer"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(709) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(711) : error 021: symbol already defined: "SendClientMessage"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(728) : error 010: invalid function or declaration
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Commings"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Enjoyit"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Hin"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "Weilcome"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "byFarsek"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "player"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "tcmds"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "thelp"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "trules"
C:\Documents and Settings\Florin\Desktop\Adooble By Florin\Adooble By Florin\Adooble\gamemodes\SU.pwn(9521) : warning 203: symbol is never used: "ttele"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Vezi ca ai incurcat tu cu vriun }

dami id tau de mes prin pm sa te ajut prin tv ok

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.