/slap command
#1

Код:
C:\Users\kevin.H1964542\Desktop\SAMP Kevin\pawno\include\PPC_PlayerCommands.inc(4) : error 001: expected token: "-identifier-", but found "["
C:\Users\kevin.H1964542\Desktop\SAMP Kevin\pawno\include\PPC_PlayerCommands.inc(8) : error 027: invalid character constant
C:\Users\kevin.H1964542\Desktop\SAMP Kevin\pawno\include\PPC_PlayerCommands.inc(8) : warning 217: loose indentation
C:\Users\kevin.H1964542\Desktop\SAMP Kevin\pawno\include\PPC_PlayerCommands.inc(9) : error 017: undefined symbol "Name"
C:\Users\kevin.H1964542\Desktop\SAMP Kevin\pawno\include\PPC_PlayerCommands.inc(9) : error 017: undefined symbol "Name"
C:\Users\kevin.H1964542\Desktop\SAMP Kevin\pawno\include\PPC_PlayerCommands.inc(9) : error 029: invalid expression, assumed zero
C:\Users\kevin.H1964542\Desktop\SAMP Kevin\pawno\include\PPC_PlayerCommands.inc(9) : fatal error 107: too many error messages on one line

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


6 Errors.
These six errors I get when my command try to compile.

Current pawn code:
pawn Код:
COMMAND:slap(playerid,params[])
{  
    new OtherPlayer, Msg,[150], Name[24], Message[150], OtherPlayerName[24];
    SendAdminText(playerid,"/slap", params);
   
    if (APlayerData[playerid][PlayerLevel] >= 2)
'   {
        GetPlayerName(playerid, Name, sizeof(Name));
        GetPlayerName(OtherPlayer, OtherPlayerName, sizeof(OtherPlayerName));
        format(Msg, sizeof(MSg), "%s Slaps %s because %s", Name, OtherPlayerName, Message);
        SendClientMessageToAll(0xFFFFFFFF, Msg);
        SetPlayerHealth(OtherPlayer, 75);
    }
    else
        return 0;
}
I Try to make it like:

* SomebodyAndMe slaps 1 annoying around a bit with a large trout.
Sendclientmessagetoall: Admin: "adminname" slaps "otherplayername" because "reason".
Then the other player will lose 25% health.


Anyone knows a fix or the whole command?
Reply


Messages In This Thread
/slap command - by SomebodyAndMe - 21.11.2011, 18:32
Re: /slap command - by FireCat - 21.11.2011, 18:34
Re: /slap command - by sleepysnowflake - 21.11.2011, 18:35
Re: /slap command - by Kostas' - 21.11.2011, 18:37
Re: /slap command - by KingHual - 21.11.2011, 18:37
Re: /slap command - by SomebodyAndMe - 21.11.2011, 18:38
Re: /slap command - by Camacorn - 21.11.2011, 18:39
Re: /slap command - by KingHual - 21.11.2011, 18:39
Re: /slap command - by SomebodyAndMe - 21.11.2011, 18:40
Re: /slap command - by SomebodyAndMe - 21.11.2011, 18:50

Forum Jump:


Users browsing this thread: 8 Guest(s)