SA-MP Forums Archive
3 Warnings!! Help bls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3 Warnings!! Help bls (/showthread.php?tid=601569)



3 Warnings!! Help bls - CopKing123 - 23.02.2016

here are the warnings

Код:
C:\Users\Shaikh\Desktop\SAMP\gamemodes\bare.pwn(150) : warning 209: function "OnPlayerDeath" should return a value
C:\Users\Shaikh\Desktop\SAMP\gamemodes\bare.pwn(224) : warning 203: symbol is never used: "DM"
C:\Users\Shaikh\Desktop\SAMP\gamemodes\bare.pwn(224) : warning 203: symbol is never used: "DMenter"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
and here are the lines:-


Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(InDM[playerid] == 1)
    return 1;      <<<<<< Line 150
}
Код:
CMD:DM(playerid, params[])
idk these are the cmd but in warnings its giving warning 203: symbol is never used: "DM
Thank You [ Will +Rep]


Re: 3 Warnings!! Help bls - BiosMarcel - 23.02.2016

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
InDM[playerid] == 1)
    {
        return 
1;
    }
    return 
0;

or

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
InDM[playerid] == 1)
    {
        return 
1;
    }
    return 
1;

and dont worry bout the unused stuff

i guess u will use that later , if not u can just delete the "symbols"


Re: 3 Warnings!! Help bls - CopKing123 - 23.02.2016

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
InDM[playerid] == 1)
    {
        return 
1;
    }
    return 
0;

or

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
InDM[playerid] == 1)
    {
        return 
1;
    }
    return 
1;

and dont worry bout the unused stuff

i guess u will use that later , if not u can just delete the "symbols"
ok thanks alot now 2 warnngs left..
but I can't use cmds... cus they giving warnings.. what to do?



Код:
C:\Users\Shaikh\Desktop\SAMP\gamemodes\bare.pwn(224) : warning 203: symbol is never used: "DM"
C:\Users\Shaikh\Desktop\SAMP\gamemodes\bare.pwn(224) : warning 203: symbol is never used: "DMenter"
here is the cmd

Код:
CMD:DMenter(playerid, params[])
{
	if(InDM[playerid] == 0)
	{
		SendClientMessage(playerid, -1, "You are not at the DM arena!");
		return 1;
	}
	else if(InDM[playerid] == 1)
	{
		InDM[playerid] = 0;
		SetPlayerVirtualWorld(playerid, 0);
		SetPlayerHealth(playerid, 0.00);
		ForceClassSelection(playerid);
		SetPlayerInterior(playerid, 0);
		SendClientMessage(playerid, -1, "You have left the DM arena!");
		return 1;
	}
	return 1;
}



Re: 3 Warnings!! Help bls - AmigaBlizzard - 23.02.2016

Do you have zcmd properly included?


Re: 3 Warnings!! Help bls - CopKing123 - 23.02.2016

yep..


Re: 3 Warnings!! Help bls - BiosMarcel - 23.02.2016

Update zcmd maybe yours is somehow corrupted


Re: 3 Warnings!! Help bls - CopKing123 - 23.02.2016

Can u pls gimme the download link of the official zcmd ? I just downloaded and tried but still not working maybe curroted or smth

Thanks