Jump to content
  • 0

Problema la o eroare,warn


Papana

Question

11 answers to this question

Recommended Posts

#include "progress" il am

iar petru a doua

public OnPlayerDeath(playerid, killerid, reason)
{
    new string[256];
	if(PlayerInfo[playerid][Membru] == 1)
	{
	    AntiDeAMX();
        PlayerInfo[killerid][Wanted] += 4;
        SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
        SetPlayerWantedLevel(killerid, PlayerInfo[playerid][Wanted]+4);
        SendClientMessage(killerid, WHITE, "Ai omorat un om al legii, ti-sau mai adaugat inca 4 puncte de cautare.");
        return 1;
    }
    else
    {
        PlayerInfo[killerid][Asasinari] += 1;
        PlayerInfo[playerid][Decese] += 1;
        SetPlayerPos(playerid,209.3314,-34.0742,1001.9297);
        GivePlayerMoneyEx(playerid, -100);
        SendClientMessage(playerid, WHITE, "Factura medicala este de 100$.");
        SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
        return 1;
    }
    if(EventStatus == true)
    {
	    if(playerid == TradatorID)
		{
		    if(killerid != playerid)
		    {
		    	GivePlayerMoneyEx(killerid,1000);
		    	format(string, sizeof(string), " [Server-Event]: %s[%d] a omorat tradatotrul %s si a castigat 1000$", pName(killerid), killerid, pName(TradatorID));
		    	SendClientMessageToAll(0xFFFFFFFF, string);
		    	EventStatus = false;
		    	TradatorID = -1;
		  		SetTimer("EventTradator", 2340000, 0);//30 minute
		  	}
		  	else
		  	{
		  	    format(string, sizeof(string), " [Server-Event]: Tradatotrul %s s-a omorat singur",pName(TradatorID));
		    	SendClientMessageToAll(0xFFFFFFFF, string);
		    	EventStatus = false;
		    	TradatorID = -1;
		  		SetTimer("EventTradator", 2340000, 0);//30 minute
		    }
		}
	}
	return 1;
}

Link to comment
Share on other sites

Da ma e G RPG acuma am vazut in urmatoarea versiune am reparat chestia asta.

Rezolvare:

Dute la toate variabilele EventStatus, in loc de true pune 1, iar in loc de false 0. Iar in loc de new bool:EventStatus; pune new EventStatus;

Succes

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

gireada tot imi apar

D:\sa-mp\Server Role-Play\pawno\include\dutils.inc(21) : error 074: #define pattern must start with an alphabetic character
D:\sa-mp\Server Role-Play\gamemodes\GM2.pwn(2130) : warning 225: unreachable code

daca zici ca le-ai rezolvat nu mi le poti da ...

eu am descarcat ultima versiune pe care ai puso

m-am reapucat de scripting si vreau sa scriptez pe un gm pana invat calumea ca sa mi-l fac pe al meu ..

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.