Help! /commands
#4

Quote:
Originally Posted by sXecookie
Quote:
Originally Posted by _Saif_
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(commands, 8,cmdtext);
return 0;
}
Код:
dcmd_commands(playerid,params[]) {
#pragma unused params
SendClientMessage(playerid, COLOR_YELLOW, " The text you want to add.");
SendClientMessage(playerid, COLOR_YELLOW, " so on...");
return 1;
}
Got one error now.

Quote:

C:\Users\Hampus\Desktop\Freeroam\gamemodes\freeroa m.pwn(776) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Users\Hampus\Desktop\Freeroam\gamemodes\freeroa m.pwn(1073) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

dont put onplayercommandtext two time just add dcmd(commands, 8 , cmdtext); one time in your onplayercommandtext and OnPlayerPrivMsg removed in 0.3
Reply


Messages In This Thread
Help! /commands - by sXecookie - 07.01.2010, 08:22
Re: Help! /commands - by Deat_Itself - 07.01.2010, 08:26
Re: Help! /commands - by sXecookie - 07.01.2010, 08:29
Re: Help! /commands - by Deat_Itself - 07.01.2010, 08:30
Re: Help! /commands - by sXecookie - 07.01.2010, 08:30
Re: Help! /commands - by Niixie - 07.01.2010, 10:22
Re: Help! /commands - by sXecookie - 07.01.2010, 10:43
Re: Help! /commands - by Niixie - 07.01.2010, 10:57
Re: Help! /commands - by sXecookie - 07.01.2010, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)