Jump to content
  • 0

[GF/RP] problema la definiire ceva la onplayerdeath


Question

Posted

trebui sa definesc ceva

dar nu stiu cum

la un lucru la onplayerdeath

    if(PlayerInfo[killerid][pMember] == 5 || PlayerInfo[killerid][pLeader] == 5)
	{
		if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
		{
            new killer[MAX_PLAYER_NAME];
            GetPlayerName(killerid, killer, sizeof(killer));
            format(string,128,"* %s Yakuza Family a omorat pe %s Triads Family si a primit 2500$.",killer,name);
            SendYAKUZAMessage(COLOR_1GREEN, string);
            scoreteam1 += 1;
            format(string,128,"* %s Triads Family a fost omorat de %s Yakuza Family.",name,killer);
            SendTRIADSMessage(COLOR_1BLUE, string);
	        GivePlayerMoney(killerid, 2500);
	        scoreteam2 -= 1;
	        return 1;
        }
	}
am definit cu new apoi la forward nu reusesc am pus la forward asa
forward SendYAKUZAMessage(color, string);
forward scoreteam1();
forward SendTRIADSMessage(color, string);
forward scoreteam2();
si imi da erori:
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5409) : error 035: argument type mismatch (argument 2)
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5410) : error 076: syntax error in the expression, or invalid function call
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5410) : warning 215: expression has no effect
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5412) : error 035: argument type mismatch (argument 2)
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5414) : error 076: syntax error in the expression, or invalid function call
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5414) : warning 215: expression has no effect
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(55602) : warning 203: symbol is never used: "scoreteam1"
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(55602) : warning 203: symbol is never used: "scoreteam2"

va rog sa imi ziceti nu prea am inteles cum sa definesc

stiu,dar nu prea bine :-?

3 answers to this question

Recommended Posts

Posted

ce public sa postez ?

am sters forward scoreteam1;

...

si acu am mai ramas doar cu

D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5409) : error 035: argument type mismatch (argument 2)
D:\Diverse\Gamemode sa-mp\RPG.ConGame.Ro\gamemodes\eGamer.pwn(5412) : error 035: argument type mismatch (argument 2)

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.