Kvostyc 4 Odesláno: 22. Prosinec, 2014 Share Odesláno: 22. Prosinec, 2014 čus všetko mi v poho ukladá, ale ked dám /gangy tak sa mi neukáže meno gangu ale majiteľš gangu a rešpekt áno CMD:gangy(playerid,params[]) { new GangCesta[50]; format(GangCesta,sizeof(GangCesta),"/Gangy/%s",gSystem[MenoGangu]); new string[1000]; format(string,sizeof(string),"1. {ffff00}Gang: %s {ff0000}Majiteľ: %s {ff00ff}Rešpekt: %d",gSystem[MenoGangu],gSystem[Majitel],gSystem[Respekt]); ShowPlayerDialog(playerid,DIALOG_GANGY,DIALOG_STYLE_MSGBOX,"Gangy",string,"Ok",""); return 1; } if(dialogid == DIALOG_Gang1) { new GangCesta[50]; format(GangCesta,sizeof(GangCesta),"/Gangy/%s.ini",inputtext); if(!response) return 0; if(!dini_Exists(GangCesta)) { dini_Create(GangCesta); } dini_Create(GangCesta); dini_Set(GangCesta ,"MenoGangu", inputtext); dini_Set(GangCesta, "Majitel", PlayerName(playerid)); dini_IntSet(GangCesta ,"Respekt", gSystem[Respekt]); strmid(inputtext, dini_Get(GangCesta, "MenoGangu"), false, strlen(dini_Get(GangCesta, "MenoGangu")), 50); strmid(gSystem[Majitel], dini_Get(GangCesta, "Majitel"), false, strlen(dini_Get(GangCesta, "Majitel")), MAX_PLAYER_NAME); gSystem[Respekt] = dini_Int(GangCesta, "Respekt"); } Link to comment Share on other sites More sharing options...
Mort 29 Odesláno: 22. Prosinec, 2014 Share Odesláno: 22. Prosinec, 2014 U toho dialogu ti chybí toto: gSystem[MenoGangu] = inputtext; Link to comment Share on other sites More sharing options...
Kvostyc 4 Odesláno: 22. Prosinec, 2014 Author Share Odesláno: 22. Prosinec, 2014 Potom mi píše toto: C:\Users\5\Desktop\PAWN\gamemodes\ODZNOVA.pwn(573) : error 006: must be assigned to an array //EDIT Chyba vyriešená Link to comment Share on other sites More sharing options...
Mort 29 Odesláno: 22. Prosinec, 2014 Share Odesláno: 22. Prosinec, 2014 Ukaž ten tvůj enum pro ty gangy.. Link to comment Share on other sites More sharing options...
Kvostyc 4 Odesláno: 22. Prosinec, 2014 Author Share Odesláno: 22. Prosinec, 2014 Aha tak mi to nejde enum GangSystem { MenoGangu, Respekt, Majitel }; Link to comment Share on other sites More sharing options...
Mort 29 Odesláno: 22. Prosinec, 2014 Share Odesláno: 22. Prosinec, 2014 enum GangSystem { MenoGangu[50], Respekt, Majitel }; format(gSystem[MenoGangu], sizeof(gSystem[MenoGangu]), "%s", inputtext); Jinak, doufám že si uvědomuješ, že budeš moct vytvořit pouze jeden gang.. Link to comment Share on other sites More sharing options...
Kvostyc 4 Odesláno: 22. Prosinec, 2014 Author Share Odesláno: 22. Prosinec, 2014 Díky A prečo iba 1. gang? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now