3 Warnings!! Help bls
#1

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]
Reply
#2

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"
Reply
#3

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;
}
Reply
#4

Do you have zcmd properly included?
Reply
#5

yep..
Reply
#6

Update zcmd maybe yours is somehow corrupted
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)