14.02.2011, 14:35
Help please.
Errors:
Thanks for help.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/duty", true))
{
if (IsPlayerLAdmin(playerid)
{
new message[256], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(message,sizeof(message),"%s is not on ~r~Duty!",name);
GameTextForAll(playerid,message,10000,6);
return 1;
}
}
return 1;
if(!strcmp(cmdtext, "/para", true))
{
SendClientMessage(playerid,COLOR_RED, "Enjoy BASE Jumping!");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
GivePlayerWeapon(playerid, 46, 500);
return 1;
}
Код:
C:\Users\Marko\Desktop\Base Jmping server\gamemodes\onlybase.pwn(542) : error 001: expected token: ")", but found "{" C:\Users\Marko\Desktop\Base Jmping server\gamemodes\onlybase.pwn(546) : error 035: argument type mismatch (argument 1) C:\Users\Marko\Desktop\Base Jmping server\gamemodes\onlybase.pwn(552) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase