21.11.2011, 18:32
Код:
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.
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;
}
* 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?