Код:
#include <a_samp>
#include <Dini>
#include <dutils>
#define RED 0xFF0000AA
#define TEAM_RESCUE 21
static gTeam[MAX_PLAYERS];
public OnFilterScriptInit()
{
print("\n----------------------------------");
print(" FS BY WEST");
print("----------------------------------\n");
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new tmp[256];
new name[256];
new string[256];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmd[256];
new idx;
new giveplayerid;
new giver;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/911Login", true) == 0) {
SendClientMessage(playerid, RED, "Теперь вы спасатель");
SendClientMessage(playerid, RED, "/911skin");
gTeam[playerid] = TEAM_RESCUE;
TogglePlayerControllable(playerid,1);
SetPlayerColor(playerid, RED);
return 1;
}
if(strcmp(cmd, "/911skin", true) == 0) {
if (gTeam[playerid] == TEAM_RESCUE) {
SetPlayerSkin(playerid, 71);
}else{
SendClientMessage(playerid, RED, "Вы не спасатель");
}
return 1;
}Воть скриптик на спасателя решил зделать для сервера но проблема при компиляции выдает следующее
Код:
C:\Program Files\GTA San Andreas\samp test\filterscripts\9112.pwn(57) : error 030: compound statement not closed at the end of file (started at line 29)
Что делать незнаю жду помощи.
И еще немогли бы вы вписвать сразу туда команду /helpme чтобы команда спасателей могли прочитать это сообщение от человека попавшего в беду

