I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(225) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(229) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(232) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\My Script.pwn(237) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors
if (strcmp("/Kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_BRIGHTRED, "You Killed Yourself!");
return 1;
}
if(strcmp(cmdtext, "/rules", true, 6)== 0)
{
SendClientMessage(playerid, 0xFF0000AA," Rules");
return 1;
}
if (strcmp("/Kill", cmdtext, true, 6) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_BRIGHTRED, "You Killed Yourself!");
return 1;
}
if(strcmp( "/rules", cmdtext, true, 6)== 0)
{
SendClientMessage(playerid, 0xFF0000AA," Rules");
return 1;
}
|
Errors..
pawn Код:
pawn Код:
|
if (strcmp("Kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA, "You have killed yourself!");
return 1;
}
if (strcmp("Rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFF00AA, "Rules!");
return 1;
}
if (strcmp("Kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA, "You have killed yourself!");
return 1;
}
if (strcmp("Rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFF00AA, "Rules!");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA, "You have killed yourself!");
return 1;
}
if (strcmp("/Rules", cmdtext, true, 6) == 0)
{
SendClientMessage(playerid, 0xFFFF00AA, "Rules!");
return 1;
}
return 0;
}