Help with a simple cmd
#7

I changed it a little and now I get these errors:

Quote:

H:\samp03csvr_R2-2_win32\pawno\try.pwn(130) : error 035: argument type mismatch (argument 1)
H:\samp03csvr_R2-2_win32\pawno\try.pwn(131) : error 029: invalid expression, assumed zero
H:\samp03csvr_R2-2_win32\pawno\try.pwn(131) : warning 215: expression has no effect
H:\samp03csvr_R2-2_win32\pawno\try.pwn(131) : error 001: expected token: ";", but found "if"
H:\samp03csvr_R2-2_win32\pawno\try.pwn(131) : error 035: argument type mismatch (argument 1)
H:\samp03csvr_R2-2_win32\pawno\try.pwn(131) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

With these lines:

Quote:

COMMAND: setfightstyle(playerid, params[])
{

new fights, message[40];
if (sscanf(params, "s", fights))SendClientMessage(playerid, 0xFFFFFF, "Usage: /setfightstyle <fightstyle> type /fightlist for a list of styles");
else if(fights == GetPlayerFightingStyle(playerid)) SendClientMessage(playerid, 0xFFFFFF, "You already have that fightingstyle");
else
{
format(message, sizeof (message), "You fighting style has been changed to %s", fights);
if(!strcmp(fights, "boxing", true)) SendClientMessage(playerid, 0xFFFFFF, message); SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
else if(!strcmp(fights, "kungfu", true)) SendClientMessage(playerid, 0xFFFFFF, message); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
else if(!strcmp(fights, "kneehead", true)) SendClientMessage(playerid, 0xFFFFFF, message); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
else SendClientMessage(playerid, 0xFFFFFF, "Unknown style");
}

return 1;


}

Reply


Messages In This Thread
Help with a simple cmd - by waza75 - 07.04.2011, 14:35
Re: Help with a simple cmd - by Steve M. - 07.04.2011, 14:38
Re: Help with a simple cmd - by omer5198 - 07.04.2011, 14:38
Re: Help with a simple cmd - by waza75 - 07.04.2011, 14:41
Re: Help with a simple cmd - by Steve M. - 07.04.2011, 14:45
Re: Help with a simple cmd - by waza75 - 07.04.2011, 14:49
Re: Help with a simple cmd - by waza75 - 07.04.2011, 15:09
Re: Help with a simple cmd - by radhakr - 07.04.2011, 16:28
Re: Help with a simple cmd - by waza75 - 07.04.2011, 18:14
Re: Help with a simple cmd - by radhakr - 07.04.2011, 18:38
Re: Help with a simple cmd - by waza75 - 07.04.2011, 18:42
Re: Help with a simple cmd - by waza75 - 07.04.2011, 19:17
Re: Help with a simple cmd - by radhakr - 07.04.2011, 19:53

Forum Jump:


Users browsing this thread: 1 Guest(s)