29.01.2014, 10:43
So I was making war in my script and this is where the war file is spaced:
its all okay but when i do /pokreniwar ID ID in english /startwar ID ID it doesnt write tim1 ID and tim2 ID or Active 1 when i start it here is my script on command so if anyone could say me what i did wrong
I have NO ERRORS the problem is that when i do my command it doesnt write into war file ...
Any help ???
Quote:
#define War "War/Podesavanja.ini" enum War { Aktivan, tim1, tim2, Rez1, Rez2, GsfRezultat, TfvRezultat, BdtRezultat, RmRezultat, LsbRezultat, PdRezultat, DeaRezultat, NovinariRezultat } new WarInfo[War]; |
Quote:
YCMD:pokreniwar(playerid, params[],help) { #pragma unused help if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BT:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!"); if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,-1,""BELA"[BT:RP] "SPLAVA"Samo Admini!"); new ID1, ID2; if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[BT:RP] "SIVA"Morate biti na admin duznosti!"); if(sscanf(params, "ud", ID1, ID2)) { SCM(playerid,-1, ""SPLAVA"BT:RP Pomoc | "CRVENA"/pokreniwar [Tim1/OrgID] [Tim2/OrgID]"); SCM(playerid, -1,""SIVA"(ID:1). "SPLAVA"Los Santos Police Department"); SCM(playerid,-1,""SIVA"(ID:2). "SPLAVA"The Vinci Family"); SCM(playerid,-1,""SIVA"(ID:3). "SPLAVA"Black Dragon Triads"); SCM(playerid,-1,""SIVA"(ID:4). "SPLAVA"Grove Street Family"); SCM(playerid,-1,""SIVA"(ID:5). "SPLAVA"Ballas"); SCM(playerid,-1,""SIVA"(ID:6). "SPLAVA"Novinari"); SCM(playerid, -1,""SIVA"(ID:7). "SPLAVA"DEA"); SCM(playerid, -1,""SIVA"(ID:8). "SPLAVA"Russian Mafia"); return 1; } if(ID1 < 0 || ID1 > 8) return SendClientMessage(playerid, -1, ""CRVENA"[BT:RP] "SIVA"Nemozete ici ispod 0 i vise od 8!"); else if (ID2 < 0 || ID2 > 8) return SendClientMessage(playerid, -1, ""CRVENA"[BT:RP] "SIVA"Nemozete ici ispod 0 i vise od 8!"); if(ID1 == 0) return SendClientMessage(playerid, -1, ""CRVENA"[BT:RP] "SIVA"Nemozete ici ispod 0 i vise od 8!"); else if(ID1 == 1) { WarInfo[tim1] = 1; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"WarInfo je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatPD(-1, string); return 1; } else if(ID1 == 2) { WarInfo[tim1] = 2; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatVF(-1, string); return 1; } else if(ID1 == 3) { WarInfo[tim1] = 3; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatTBT(-1, string); return 1; } else if(ID1 == 4) { WarInfo[tim1] = 4; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatGSF(-1, string); return 1; } else if(ID1 == 5) { WarInfo[tim1] = 5; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatBallas(-1, string); return 1; } else if(ID1 == 6) { WarInfo[tim1] = 6; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatNovinari(-1, string); return 1; } else if(ID1 == 7) { WarInfo[tim1] = 7; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatDEA(-1, string); return 1; } else if(ID1 == 8) { WarInfo[tim1] = 8; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatRM(-1, string); return 1; } if(ID2 == 0) return SendClientMessage(playerid, -1, ""CRVENA"[BT:RP] "SIVA"Nemozete ici ispod 0 i vise od 8!"); else if(ID2 == 1) { WarInfo[tim2] = 1; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatPD(-1, string); return 1; } else if(ID2 == 2) { WarInfo[tim2] = 2; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatVF(-1, string); return 1; } else if(ID2 == 3) { WarInfo[tim2] = 3; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatTBT(-1, string); return 1; } else if(ID2 == 4) { WarInfo[tim2] = 4; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatGSF(-1, string); return 1; } else if(ID2 == 5) { WarInfo[tim2] = 5; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatBallas(-1, string); return 1; } else if(ID2 == 6) { WarInfo[tim2] = 6; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatNovinari(-1, string); return 1; } else if(ID2 == 7) { WarInfo[tim2] = 7; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatDEA(-1, string); return 1; } else if(ID2 == 8) { WarInfo[tim2] = 8; WarInfo[Aktivan] = 1; new string[126]; format(string,sizeof(string), SIVA "[BT:RP]"CRVENA"War je pokrenut od strane Admina "BELA"%s %s",SamoIme(playerid), SamoPrezime(playerid)); ChatRM(-1, string); return 1; } WarInfo[Rez1] = 0; WarInfo[Rez2] = 0; SetTimer("wartimer",600000, false); // 1000 miliseconds (1 second) return 1; } |
Any help ???