23.01.2011, 17:36
Galera eu tavo com um problema aki mais eu sei como e mais nao seu fazer tipo crie uma
e uma
esse otime e pra definir os ids das gangs no classparaotime tipo
em uma linha como essa
oque deveria colocar pra definir o id da gang?
Mais a linha da erro e o erro esta nisso
pawn Код:
new classparaotime[11][1] = {
"Bope",
"Exercito",
"Playboys",
"Noias",
"Frangos",
"Argentes",
"Chineses",
"Marfia",
"Gang Vip 1",
"Gang Vip 2",
"Gang Vip 3"
};
pawn Код:
new otime[MAX_PLAYERS];
pawn Код:
if(classid == 0)
{
GameTextForPlayer(playerid,"~n~~r~Equipe do B.O.P.E",2000,3);
SetPlayerPos(playerid, 2013.164184, -1199.702026, 20.023437);
SetPlayerCameraPos(playerid, 2020.164184, -1199.702026, 20.023437);
SetPlayerCameraLookAt(playerid, 2013.164184, -1199.702026, 20.023437);
SetPlayerColor(playerid, 0x0000BBAA);
otime [playerid] = 0;
}
if(classid == 1)
{
GameTextForPlayer(playerid,"~n~~r~Faccao das Tropas~n~Armadas Exercito",2000,3);
SetPlayerPos(playerid, 2013.164184, -1199.702026, 20.023437);
SetPlayerCameraPos(playerid, 2020.164184, -1199.702026, 20.023437);
SetPlayerCameraLookAt(playerid, 2013.164184, -1199.702026, 20.023437);
SetPlayerColor(playerid, 0xDC143CAA);
otime [playerid] = 1;
}
oque deveria colocar pra definir o id da gang?
pawn Код:
else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 30 segundos dentro do checkpoint
{
GameTextForPlayer(i, "~w~Area dominada +2 score", 4000, 1);
SetPlayerScore(i, GetPlayerScore(i) + 2);
GetPlayerName(i, playername, MAX_PLAYER_NAME);
new string[256];
format(string, sizeof(string), "|GANGZONE| A Gang %s domino mais um territуrio!", otime[classparaotime[playerid]]);//Assim que deveria ficar essa linha?
SendClientMessageToAll(COLOR_RED, string);
gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
}
pawn Код:
otime[classparaotime[playerid]]