Luigi Posted February 5, 2011 Report Share Posted February 5, 2011 array must be indexed (variable "motorlic") array must be indexed (variable "repulolic") array must be indexed (variable "hajolic") array must be indexed (variable "kamionlic") Trebuie sa salvez intrun file?Sau ce trebuie sa fac? Link to comment Share on other sites More sharing options...
IstuntmanI Posted February 5, 2011 Report Share Posted February 5, 2011 In loc de new motorlic,repulolic,hajolic,kamionlic; pui new motorlic[128],repulolic[128],hajolic[128],kamionlic[128];da ar merge si un [50], banuiesc ca e pentru salvarea licentei pe GF >.< Link to comment Share on other sites More sharing options...
Luigi Posted February 5, 2011 Author Report Share Posted February 5, 2011 Mersi,nu nui pe GF,,ma poti ajuta in urmatoarele comanzi? if(strcmp(cmd,"/startteszt", true) == 0) { new playa; new jatekos; GetPlayerName(playa, sendername, sizeof(sendername)); playa = ReturnUser(tmp); jatekos = ReturnUser(tmp); if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { new jogsi[128]; jogsi = strtok(cmdtext, idx); if(!strlen(jogsi)) { SendClientMessage(playerid,szurke,"HASZNÃLAT - /startteszt [A,B,C,hajó,repül?][playerid]"); return 1; } if(GetDistanceBetweenPlayers(playerid,jatekos) > 1) { SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!"); return 1; } if(strcmp(jogsi,"A",true) == 0) { format(string, sizeof(string), "ElindÃtottad %s A kategória tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s elindÃtotta az A kategória tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); motorlic[playerid] = 1; return 1; } if(strcmp(jogsi,"B",true) == 0) { format(string, sizeof(string), "ElindÃtottad %s B kategória tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s elindÃtotta a B kategória tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); PlayerInfo[playerid][pCarlic] = 1; return 1; } if(strcmp(jogsi,"C",true) == 0) { format(string, sizeof(string), "ElindÃtottad %s C kategória tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s elindÃtotta a C kategória tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); kamionlic[playerid] = 1; return 1; } if(strcmp(jogsi,"hajó",true) == 0) { format(string, sizeof(string), "ElindÃtottad %s hajó tesztjét tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s elindÃtotta a hajó tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); hajolic[playerid] = 1; return 1; } if(strcmp(jogsi,"repül?",true) == 0) { format(string, sizeof(string), "ElindÃtottad %s repül? tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s elindÃtotta a repül? tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); repulolic[playerid] = 1; return 1; } } } if(strcmp(cmd,"/stopteszt", true) == 0) { new playa; new jatekos; GetPlayerName(playa, sendername, sizeof(sendername)); playa = ReturnUser(tmp); jatekos = ReturnUser(tmp); if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { new jogsi[128]; jogsi = strtok(cmdtext, idx); if(!strlen(jogsi)) { SendClientMessage(playerid,szurke,"HASZNÃLAT - /stopteszt [A,B,C,hajó,repül?][playerid]"); return 1; } if(GetDistanceBetweenPlayers(playerid,jatekos) > 1) { SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!"); return 1; } if(strcmp(jogsi,"A",true) == 0) { format(string, sizeof(string), "LeállÃtottad %s A kategória tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s leállÃtotta az A kategória tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); motorlic[playerid] = 0; return 1; } if(strcmp(jogsi,"B",true) == 0) { format(string, sizeof(string), "LeállÃtottad %s B kategória tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s leállÃtotta az B kategória tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); PlayerInfo[playerid][pCarlic] = 0; return 1; } if(strcmp(jogsi,"C",true) == 0) { format(string, sizeof(string), "LeállÃtottad %s C kategória tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s leállÃtotta az C kategória tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); kamionlic[playerid] = 0; return 1; } if(strcmp(jogsi,"hajó",true) == 0) { format(string, sizeof(string), "LeállÃtottad %s hajó tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s leállÃtotta a hajó tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); hajolic[playerid] = 0; return 1; } if(strcmp(jogsi,"repül?",true) == 0) { format(string, sizeof(string), "LeállÃtottad %s repül? tesztjét",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s leállÃtotta a repül? tesztedet",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); repulolic[playerid] = 0; return 1; } } } if(strcmp(cmd,"/jogsi",true) == 0) { new playa; new jatekos; GetPlayerName(playa, sendername, sizeof(sendername)); playa = ReturnUser(tmp); jatekos = ReturnUser(tmp); if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) { new jogsi[128]; jogsi = strtok(cmdtext, idx); if(!strlen(jogsi)) { SendClientMessage(playerid,szurke,"HASZNÃLAT - /jogsi [A,B,C,hajó,repül?][playerid]"); return 1; } if(GetDistanceBetweenPlayers(playerid,jatekos) > 1) { SendClientMessage(playerid, szurke, " Nincs a közeledbe ez a játékos!"); return 1; } if(stopteszt[playerid] == 1) { SendClientMessage(playerid,szurke,"El?bb állÃtsd le a tesztjét"); return 1; } if(strcmp(jogsi,"A",true) == 0) { format(string, sizeof(string), "Adtál %s -nek egy A kategóriájú jogsit",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s oda adta neked a A kategóriájú jogsid",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid); ProxDetector(20.0,playerid,string,me,me,me,me,me); motorlic[playerid] = 1; return 1; } if(strcmp(jogsi,"B",true) == 0) { format(string, sizeof(string), "Adtál %s -nek egy B kategóriájú jogsit",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s oda adta neked a B kategóriájú jogsid",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid); ProxDetector(20.0,playerid,string,me,me,me,me,me); PlayerInfo[playerid][pCarlic] = 1; return 1; } if(strcmp(jogsi,"C",true) == 0) { format(string, sizeof(string), "Adtál %s -nek egy C kategóriájú jogsit",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s oda adta neked a C kategóriájú jogsid",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid); ProxDetector(20.0,playerid,string,me,me,me,me,me); kamionlic[playerid] = 1; return 1; } if(strcmp(jogsi,"hajó",true) == 0) { format(string, sizeof(string), "Adtál %s -nek egy hajó jogsit",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s oda adta neked a hajó jogsit ",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid); ProxDetector(20.0,playerid,string,me,me,me,me,me); hajolic[playerid] = 1; return 1; } if(strcmp(jogsi,"repül?",true) == 0) { format(string, sizeof(string), "Adtál %s -nek egy repül? jogsit",giveplayerid); SendClientMessage(playerid,COLOR_LIGHTBLUE,string); format(string, sizeof(string), "%s oda adta neked a repül? jogsid",GetPlayerNameEx(playerid)); SendClientMessage(jatekos,COLOR_LIGHTBLUE,string); format(string, sizeof(string),"* %s átad egy iratot %s -nek ",GetPlayerNameEx(playerid),giveplayerid); ProxDetector(20.0,playerid,string,me,me,me,me,me); repulolic[playerid] = 1; return 1; } } }Nu stiu de ce nu imi functioneaza "jatekos"-ul (jatekos = giveplayerid) Link to comment Share on other sites More sharing options...
Question
Luigi
Trebuie sa salvez intrun file?Sau ce trebuie sa fac?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts