18.04.2013, 15:15
Well, I just scripted this, but it appears a lot of errors:
Errors:
pawn Код:
case 898:
{
if(response)
{
if(IsPlayerAdmin(playerid));
{
switch(listitem)
{
case 0:GivePlayerWeapon(playerid, 35, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a rocket launcher.");
case 1:GivePlayerWeapon(playerid, 36, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a heat seeker launcher.");
case 2:GivePlayerWeapon(playerid, 37, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a flamethrower.");
case 3:GivePlayerWeapon(playerid, 38, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a minigun.");
case 4:GivePlayerWeapon(playerid, 39, 9999) && SendClientMessage(playerid, 0xFF9900AA, "[INFO]: You've got a satchel charge.");
}
}
else return cmd_weapons(playerid,"params") && SendClientMessage(playerid, 0xFF000000, "[ERROR]: You are not a RCON admin");
}
Код:
C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(272) : error 036: empty statement C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(273) : warning 217: loose indentation C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(283) : warning 217: loose indentation C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(283) : error 029: invalid expression, assumed zero C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(283) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(283) : error 001: expected token: ";", but found "return" C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(287) : error 002: only a single statement (or expression) can follow each "case" C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(287) : warning 215: expression has no effect C:\Documents and Settings\User\Desktop\Scripts\filterscripts\weapon.pwn(288) : warning 209: function "OnDialogResponse" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.