Unreachable code :/
#9

Quote:
Originally Posted by ProfeQ
Посмотреть сообщение
Trial and error is good for me, I recommend you also edit the scripts from the Internet, is useful in understanding the new features and solutions to some things.
I was trying that but then i realized most of the scripts i find on the internet have things that i have no idea what to do with...

Edit:
Quote:
Originally Posted by ProfeQ
Посмотреть сообщение
//Edit:
Ohh god, my mistake. I would suggest, however, dispense with sscanf.

Код:
CMD:slap(playerid, params[])
{
    if(!IsPlayerAdmin(playerid))
        return SendClientMessage(playerid, 0x708090FF, "You are not a admin!");
        
	new string[128];
	if(isnull(params))
	    return SendClientMessage(playerid, 0x708090FF, "Syntax: /slap [playerid]");
	    
     if(!IsPlayerConnected(strval(params)))
	 	return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
	 	
	SetPlayerVelocity(strval(params), 0.5, 0.0, 0.0);
	format(string, sizeof(string), "%s has slapped %s", GetName(playerid), GetName(strval(params)));
	SendMessageToRAdmins(0xFF0000FF, string);
	return 1;
}
Anddd now im confused lol
Reply


Messages In This Thread
Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:17
Re: Unreachable code :/ - by Ironboy - 29.06.2012, 16:26
Re: Unreachable code :/ - by Calabresi - 29.06.2012, 16:28
Re: Unreachable code :/ - by ProfeQ - 29.06.2012, 16:29
AW: Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:33
Re: Unreachable code :/ - by pyrodave - 29.06.2012, 16:34
Re: Unreachable code :/ - by ProfeQ - 29.06.2012, 16:35
AW: Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:37
AW: Re: Unreachable code :/ - by GreenIsGo - 29.06.2012, 16:39
Re: Unreachable code :/ - by Calabresi - 29.06.2012, 17:43

Forum Jump:


Users browsing this thread: 2 Guest(s)