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.
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;
}
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;
}
return 1;
}
Msg,[150]
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;
}
return 1;
}
Msg,[150]
if (APlayerData[playerid][PlayerLevel] >= 2)
' {
|
pawn Код:
|
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(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 5 Errors.
|
Did you even included <a_samp> and <zcmd> ? |
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;
}
return 1;
}