C:\Documents and Settings\p\Desktop\New Folder\pawno\Untitled.pwn(75) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\p\Desktop\New Folder\pawno\Untitled.pwn(75) : error 017: undefined symbol "You"
C:\Documents and Settings\p\Desktop\New Folder\pawno\Untitled.pwn(75) : error 017: undefined symbol "Killed"
C:\Documents and Settings\p\Desktop\New Folder\pawno\Untitled.pwn(75) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(playerid, -1000);
SendClientMessage(playerid, 0xFFFFFFFF, "You Died And Lost $1000");
GivePlayerMoney(killerid, 1000);
SendClientMessage(killerid,0xFFFFFFFF, "You Killed Him Get the Reward $1000);
return 1;
}
SendClientMessage(killerid,0xFFFFFFFF, "You Killed Him Get the Reward $1000<HERE>);
SendClientMessage(killerid,0xFFFFFFFF, "You Killed Him Get the Reward $1000"); //
SendClientMessage(killerid,0xFFFFFFFF, "You Killed Him Get the Reward $1000);
SendClientMessage(killerid,0xFFFFFFFF, "You Killed Him Get the Reward $1000");
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : warning 215: expression has no effect
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : warning 215: expression has no effect
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext,"/kill',true)) {
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid,0xFFFFFFFF, "You Killed Your Self");
return 1;
}
return 0;
}
if(!strcmp(cmdtext,"/kill',true)) {
{
if(!strcmp(cmdtext,"/kill',true))
{
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : warning 215: expression has no effect
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : warning 215: expression has no effect
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\p\Desktop\New Folder\pawno\nubitol.pwn(96) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 0); SendClientMessage(playerid,0xFFFFFFFF, "You Killed Your Self"); return 1; } return 0; }
You can't open an if-statement with two opening brackets.
pawn Код:
|
if(!strcmp(cmdtext,"/kill",true))
{
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext,"/kill----->'<------,true)) { { SetPlayerHealth(playerid, 0); SendClientMessage(playerid,0xFFFFFFFF, "You Killed Your Self"); return 1; } return 0; }