#include <a_samp>
#include <streamer>
#define MAX_ZONES 1
new zones[MAX_ZONES];
new Float:zones_points_0[] = {
2676.0,-2394.0,2806.0,-2394.0,2807.0,-2581.0,2676.0,-2581.0,2676.0,-2394.0
};
new zones_text[MAX_ZONES][64] = {
"Army area"
};
public OnFilterScriptInit() {
print("--------------------------------------");
print("GTA SA Zone Editor by Grimrandomer - Exporter");
print("--------------------------------------");
zones[0] = CreateDynamicPolygon(zones_points_0);
return 1;
}
public OnFilterScriptExit() {
return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid) {
for (new zone=0; zone<MAX_ZONES; zone++) {
if (areaid==zones[zone]) {
new msg[90];
format(msg, 90, "Entering the army zone... %s", zones_text[zone]);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}
}
return 1;
}
public OnPlayerLeaveDynamicArea(playerid, areaid) {
for (new zone=0; zone<MAX_ZONES; zone++) {
if (areaid==zones[zone]) {
new msg[90];
format(msg, 90, "Leaving the army zone... %s", zones_text[zone]);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}
}
return 1;
}
|
Code:
Код:
#include <a_samp>
#include <streamer>
#define MAX_ZONES 1
new zones[MAX_ZONES];
new Float:zones_points_0[] = {
2676.0,-2394.0,2806.0,-2394.0,2807.0,-2581.0,2676.0,-2581.0,2676.0,-2394.0
};
new zones_text[MAX_ZONES][64] = {
"Army area"
};
public OnFilterScriptInit() {
print("--------------------------------------");
print("GTA SA Zone Editor by Grimrandomer - Exporter");
print("--------------------------------------");
zones[0] = CreateDynamicPolygon(zones_points_0);
return 1;
}
public OnFilterScriptExit() {
return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid) {
for (new zone=0; zone<MAX_ZONES; zone++) {
if (areaid==zones[zone]) {
new msg[90];
format(msg, 90, "Entering the army zone... %s", zones_text[zone]);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}
}
return 1;
}
public OnPlayerLeaveDynamicArea(playerid, areaid) {
for (new zone=0; zone<MAX_ZONES; zone++) {
if (areaid==zones[zone]) {
new msg[90];
format(msg, 90, "Leaving the army zone... %s", zones_text[zone]);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}
}
return 1;
}
|
|
SA-MP Server\gamemodes\grandlarc.pwn(359) : error 017: undefined symbol "Army" SA-MP Server\gamemodes\grandlarc.pwn(359) : error 017: undefined symbol "area" SA-MP Server\gamemodes\grandlarc.pwn(359) : error 029: invalid expression, assumed zero SA-MP Server\gamemodes\grandlarc.pwn(359) : fatal error 107: too many error messages on one line |