[Help]Me!
#1

pawn Код:
// Smoking command
    if(strcmp("/smoke", cmd, true) == 0)
    {
        new Playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Playername, 24);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
        GivePlayerMoney(playerid, -2);
      format(actiontext,MAX_CHATBUBBLE_LENGTH,"*%s takes out a cigarette and lights it*",Playername,);
        SetPlayerChatBubble(playerid,actiontext,ACTION_COLOR,15.0,10000);
    SendClientMessage(playerid,ACTION_COLOR,actiontext);
        return 1;
    }
It gives me errors
Код:
C:\Counter-Strike 2D\Server\filterscripts\chatcmds.pwn(89) : error 029: invalid expression, assumed zero
C:\Counter-Strike 2D\Server\filterscripts\chatcmds.pwn(89) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Line 89
format(actiontext,MAX_CHATBUBBLE_LENGTH,"*%s takes out a cigarette and lights it*",Playername,);
Reply


Messages In This Thread
[Help]Me! - by Thrarod - 08.04.2010, 16:37
Re: [Help]Me! - by Iuri - 08.04.2010, 16:39
Re: [Help]Me! - by Thrarod - 08.04.2010, 16:44
Re: [Help]Me! - by Iuri - 08.04.2010, 16:45
Re: [Help]Me! - by Thrarod - 08.04.2010, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)