- 0
Problema war system
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
smokeyutzu
sal am luat un fs dupa net lam editat dar imi o eroare uitati
eroare:[pawn]D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(7570) : warning 217: loose indentation
D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(7580) : warning 217: loose indentation
D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(9179) : warning 217: loose indentation
D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(9183) : error 017: undefined symbol "wtimer"
D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(9183) : warning 215: expression has no effect
D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(9183) : error 001: expected token: ";", but found "]"
D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(9183) : error 029: invalid expression, assumed zero
D:\MyDocuments\Downloads\[www.fisierulmeu.ro] samp03csvr_win32\samp03csvr_win32\gamemodes\gf.pwn(9183) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
[/pawn]
Aici e linia:[pawn]//=======================War System===============================================
if(strcmp(cmd, "/startwar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(wtimer[playerid] < 1) { };
else
{
SendClientMessage(playerid, COLOR_GREY, "Trebuie sa astepti 12 ore la fiecare war!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 14)
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "Tasteaza: /startwar list , /startwar [locul]");
return 1;
}
if(strcmp(x_nr,"list",true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "_________Lista Locuri_________");
SendClientMessage(playerid, COLOR_GRAD1, "1:GS/LS 2: BS/LS");
return 1;
}
else if(strcmp(x_nr,"1",true) == 0)
{
SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {F81414}Yakuza{FFFFFF}-{14F0F8}Varrios Los Aztecas{FFFFFF}-{A00AE0}Ballas {FFFFFF}au declarat WAR , zona: {FFFFFF}GS/LS");
IDAlianta = 1;
provoked = 1;
wtimer[playerid] = 3000000;
GangZoneShowForAll(gslswar, 0x000000D0);
return 1;
}
else if(strcmp(x_nr,"2",true) == 0)
{
SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {F81414}Yakuza{FFFFFF}-{14F0F8}Varrios Los Aztecas{FFFFFF}-{A00AE0}Ballas {FFFFFF}au declarat WAR , zona: {FFFFFF}BS/LS");
IDAlianta = 1;
provoked = 1;
wtimer[playerid] = 3000000;
GangZoneShowForAll(bslswar, 0x000000D0);
return 1;
}
}
if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 12)
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "Tasteaza: /startwar list , /startwar [locul]");
return 1;
}
if(strcmp(x_nr,"list",true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "_________Lista Locuri_________");
SendClientMessage(playerid, COLOR_GRAD1, "1: GS/LS 2: BS/LS ");
return 1;
}
else if(strcmp(x_nr,"1",true) == 0)
{
SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {996600}La Casa Nostra{FFFFFF}-{EDEA09}Los Santos Vagos{FFFFFF}-{009900}Groove {FFFFFF}au declarat WAR , zona: {FFFFFF}GS/LS");
wtimer[playerid] = 3000000;
IDAlianta = 2;
provoked = 1;
GangZoneShowForAll(gslswar, 0x000000D0);
return 1;
}
else if(strcmp(x_nr,"2",true) == 0)
{
SendClientMessageToAll(COLOR_GREEN, "{00FA9A}[WAR]: {996600}La Casa Nostra{FFFFFF}-{EDEA09}Los Santos Vagos{FFFFFF}-{009900}Groove {FFFFFF}au declarat WAR , zona: {FFFFFF}BS/LS");
wtimer[playerid] = 3000000;
IDAlianta = 2;
provoked = 1;
GangZoneShowForAll(bslswar, 0x000000D0);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Nu esti leader-ul unei Mafii sau al unui Gang!");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/acceptwar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (provoked == 1)
{
if (PlayerInfo[playerid][pLeader] >= 5 || PlayerInfo[playerid][pLeader] >= 6 || PlayerInfo[playerid][pLeader] >= 15 || PlayerInfo[playerid][pLeader] >= 13 || PlayerInfo[playerid][pLeader] >= 14 || PlayerInfo[playerid][pLeader] >= 12)
{
if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 14)
{
if(IDAlianta == 1) return SendClientMessage(playerid,0xFFFFFFFF,"Faci parte din alianta care ataca nu poti da /acceptwar!");
}
if (PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 18)
{
if(IDAlianta == 2) return SendClientMessage(playerid,0xFFFFFFFF,"Faci parte din alianta care ataca nu poti da /acceptwar!");
}
new hour,minuite;
gettime(hour,minuite);
FixHour(hour);
scoreteam1 = 0;
scoreteam2 = 0;
SetTimer("wtime", 18, false);
SetTimer("wartime", 900000, true); // 15 minute dureaza razboiul [babica],nu aveai settimer
SendClientMessageToAll(COLOR_WHITE, "{6EF83C}|____A inceput razboiul____|");
format(string, sizeof(string), "{F81414}Yakuza{FFFFFF}-{14F0F8}VLA{FFFFFF}-{A00AE0}Ballas{FFFFFF} vS {996600}LCN{FFFFFF}-{EDEA09}LSV{FFFFFF}-{009900}Groove {FFFFFF}");
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE, "Premiul: {F81414}100.000 {33AA33}$ {F81414}5000 {33AA33}Mats {F81414}200 {33AA33}Drugs");
format(string, sizeof(string), "War inceput la ora: {F81414}%d: %d", hour, minuite);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE, "Va rugam {FF0033}evitati{FFFFFF} acea zona!");
SendClientMessageToAll(COLOR_WHITE, "{6EF83C}|____A inceput razboiul____|");
provoked = 0;
IDAlianta = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu esti leader-ul unei Mafii sau al unui Gang.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nu ai fost provocat de nimeni.");
}
}
return 1;
}[/pawn]
2 answers to this question
Recommended Posts