Oh look!
#1

You probably all know me by now because this is my third time asking for help!
So, I was scripting a /heal command and it all bugged out, the command above it works perfectly so I have no idea what's wrong.

This is of both commands, the first one works fully:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/SpawnM4", cmdtext, true, 10) == 0)
    {
        GivePlayerWeapon(playerid, 31, 10000);

	
	}
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
	
	 	SendPlayerHealth(playerid, 100);
	 	SendClientMessage(playerid, "You have been healed!");
	 	return 1;
	 }
	 return 0;
}
ERROR CODES:
: error 021: symbol already defined: "OnPlayerCommandText"
: error 017: undefined symbol "SendPlayerHealth"
: error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
Oh look! - by mkmk - 11.10.2014, 18:07
Re: Oh look! - by IceBilizard - 11.10.2014, 18:49
Re: Oh look! - by Abagail - 11.10.2014, 18:54
Re : Oh look! - by Dutheil - 11.10.2014, 18:56
Re: Oh look! - by mkmk - 11.10.2014, 18:58
Re: Oh look! - by IceBilizard - 11.10.2014, 19:00
Re: Oh look! - by mkmk - 11.10.2014, 19:29
Re: Oh look! - by YanLanger - 11.10.2014, 19:30
Re: Oh look! - by IceBilizard - 11.10.2014, 19:32
Re: Oh look! - by mkmk - 11.10.2014, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)