08.08.2010, 00:00
Fui coloka gzs no meu gm e deu erro
No Topo do GM:
Forwards:
No public OnGameModeInit()
Spawn:
Cmd /dominar:
Na hr de compila...
Alguem me fala onde eu errei ow se eu errei em tudo! ¬¬'
No Topo do GM:
pawn Код:
new Marginais;
new Policia;
new Exercito;
new Mafiosos;
pawn Код:
forward DominarMarginaisMarginais(playerid);
forward DominarMarginaisPolicia(playerid);
forward DominarMarginaisExercito(playerid);
forward DominarMarginaisMafiosos(playerid);
forward DominarPoliciaPolicia(playerid);
forward DominarPoliciaMarginais(playerid);
forward DominarPoliciaExercito(playerid);
forward DominarPoliciaMafiosos(playerid);
forward DominarExercitoExercito(playerid);
forward DominarExercitoMarginais(playerid);
forward DominarExercitoPolicia(playerid);
forward DominarExercitoMafiosos(playerid);
forward DominarMafiososMafiosos(playerid);
forward DominarMafiososMarginais(playerid);
forward DominarMafiososPolicia(playerid);
forward DominarMafiososExercito(playerid);
forward DinheiroGZ(playerid);
pawn Код:
public OnGameModeInit()
{
Marginais = GangZoneCreate(-4787929, 1518124, -3503363, 2020272);
Policia = GangZoneCreate(-2335575, 2207118, 5371823, 2627522);
Exercito = GangZoneCreate(-3503363, 1424701, 7590619, 209034);
Mafiosos = GangZoneCreate(-1191143, 1786715, -6189274, 2113696);
}
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid, 0);
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
GivePlayerMoney(playerid, 200);
GangZoneShowForPlayer(playerid, Marginais, 0xFF000096);
GangZoneShowForPlayer(playerid, Policia, 0x00800096);
GangZoneShowForPlayer(playerid, Exercito, 0xFFFF0096);
GangZoneShowForPlayer(playerid, Mafiosos, 0x0000FF96);
return 0;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
new giveplayer[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new string[256];
new giveplayerid;
cmd = strtok(cmdtext, idx);
if (strcmp("/dominar", cmdtext, true, 10) == 0)
{
if(IsPlayerInPlace(playerid,-316.7552,1771.5266,43.6406,87,4360))
{
if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_RED);
SetTimer("DominarPoliciaMarginais",60000,false);
}
else if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_GREEN);
SetTimer("DominarMarginaisMarginais",60000,false);
}
}
else if(IsPlayerInPlace(playerid,424.6895,2502.3071,16.4844,91.8523))
{
if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_GREEN);
SetTimer("DominarMarginaisPolicia",60000,false);
}
else if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_RED,COLOR_GREEN);
SetTimer("DominarPoliciaPolicia",60000,false);
}
else if(IsPlayerInPlace(playerid,283.2187,1934.6101,17.6406,273.5505))
{
if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_OURO);
SetTimer("DominarMarginaisExercito",60000,false);
}
else if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_RED);
SetTimer("DominarExercitoExercito",60000,false);
}
else if(IsPlayerInPlace(playerid,-933.6330,2033.8872,60.9205,220.8257))
{
if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_BLUE);
SetTimer("DominarMarginaisMafiosos",60000,false);
}
else if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_RED);
SetTimer("DominarMafiososMafiosos",60000,false);
}
else if(IsPlayerInPlace(playerid,283.2187,1934.6101,17.6406,273.5505))
{
if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_OURO);
SetTimer("DominarPoliciaExercito",60000,false);
}
else if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_GREEN);
SetTimer("DominarExercitoExercito",60000,false);
}
else if(IsPlayerInPlace(playerid,-933.6330,2033.8872,60.9205,220.8257))
{
if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_BLUE);
SetTimer("DominarPoliciaMafiosos",60000,false);
}
else if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_GREEN);
SetTimer("DominarMafiososMafiosos",60000,false);
}
else if(IsPlayerInPlace(playerid,-316.7552,1771.5266,43.6406,87,4360))
{
if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_RED);
SetTimer("DominarExercitoMarginais",60000,false);
}
else if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_OURO);
SetTimer("DominarMarginaisMarginais",60000,false);
}
else if(IsPlayerInPlace(playerid,424.6895,2502.3071,16.4844,91.8523))
{
if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_GREEN);
SetTimer("DominarExercitoPolicia",60000,false);
}
else if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_OURO);
SetTimer("DominarPoliciaPolicia",60000,false);
}
else if(IsPlayerInPlace(playerid,-933.6330,2033.8872,60.9205,220.8257))
{
if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_BLUE);
SetTimer("DominarExercitoMafiosos",60000,false);
}
else if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_OURO);
SetTimer("DominarMafiososMafiosos",60000,false);
}
else if(IsPlayerInPlace(playerid,-316.7552,1771.5266,43.6406,87,4360))
{
if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_RED);
SetTimer("DominarMafiososMarginais",60000,false);
}
else if(gTeam == TEAM_1)
{
GangZoneFlashForAll(COLOR_RED,COLOR_BLUE);
SetTimer("DominarMarginaisMarginais",60000,false);
}
else if(IsPlayerInPlace(playerid,424.6895,2502.3071,16.4844,91.8523))
{
if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_GREEN);
SetTimer("DominarMafiososPolicia",60000,false);
}
else if(gTeam == TEAM_2)
{
GangZoneFlashForAll(COLOR_GREEN,COLOR_BLUE);
SetTimer("DominarPoliciaPolicia",60000,false);
}
else if(IsPlayerInPlace(playerid,283.2187,1934.6101,17.6406,273.5505))
{
if(gTeam == TEAM_4)
{
GangZoneFlashForAll(COLOR_BLUE,COLOR_OURO);
SetTimer("DominarMafiososExercito",60000,false);
}
else if(gTeam == TEAM_3)
{
GangZoneFlashForAll(COLOR_OURO,COLOR_BLUE);
SetTimer("DominarExercitoExercito",60000,false);
}
}
return 1;
}
pawn Код:
: error 017: undefined symbol "strtok"
: error 033: array must be indexed (variable "cmd")
: error 079: inconsistent return types (array & non-array)
: error 079: inconsistent return types (array & non-array)
: error 079: inconsistent return types (array & non-array)
: error 079: inconsistent return types (array & non-array)
: error 017: undefined symbol "IsPlayerInPlace"
: error 033: array must be indexed (variable "gTeam")
: error 033: array must be indexed (variable "gTeam")
: error 017: undefined symbol "IsPlayerInPlace"
: error 033: array must be indexed (variable "gTeam")
: error 033: array must be indexed (variable "gTeam")
: error 017: undefined symbol "IsPlayerInPlace"
: error 033: array must be indexed (variable "gTeam")
: error 033: array must be indexed (variable "gTeam")
: error 017: undefined symbol "IsPlayerInPlace"
: error 033: array must be indexed (variable "gTeam")
: error 033: array must be indexed (variable "gTeam")
: error 017: undefined symbol "IsPlayerInPlace"
: error 033: array must be indexed (variable "gTeam")
: error 033: array must be indexed (variable "gTeam")
: error 017: undefined symbol "IsPlayerInPlace"
: error 033: array must be indexed (variable "gTeam")
: error 033: array must be indexed (variable "gTeam")
: error 017: undefined symbol "IsPlayerInPlace"
: error 033: array must be indexed (variable "gTeam")
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.