07.04.2011, 15:09
I changed it a little and now I get these errors:
With these lines:
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. |
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; } |