DarkDriver 0 Odesláno: 3. Březen, 2010 Share Odesláno: 3. Březen, 2010 Zdar potřeboval bych pomoct s tímto: else if(strcmp(cmdtext, "/vlastnik", true) == 0) { if (vlastnik1[playerid] >= 1){ new jmeno[24]; GetPlayerName(vlastnik1[playerid], jmeno, 24); format(string,sizeof(string), "Vlastník: %s", jmeno); SendClientMessage(playerid,zluta,string); } else { SendClientMessage(playerid,zluta,"Vlastník: město"); } return 1; } Problem:pokud nemovitost NEkoupím ukáže vlastníka město.Pokud ji zakoupím vlastníka automaticky nastaví id 0 [0-5 jsou npc] jako vlastníky Link to comment Share on other sites More sharing options...
0 TWeak 5 Odesláno: 3. Březen, 2010 Share Odesláno: 3. Březen, 2010 Cože to potřebuješ ? Popiš to více. Link to comment Share on other sites More sharing options...
0 DarkDriver 0 Odesláno: 3. Březen, 2010 Author Share Odesláno: 3. Březen, 2010 potřebuji aby mi to jelo Pokud není nemovitost koupena tak napíše že vlastníkem je město to je OK.POkud jí koupím já s idem 5 tak to automaticky nastaví hráče [v mém případě NPC s idem 0] za vlastníka nemovitosti. Potřebuji najít tu chybu nebo poradit aby to fičelo , bo mě z toho jebe Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 3. Březen, 2010 Share Odesláno: 3. Březen, 2010 else if(strcmp(cmdtext, "/buy", true) == 0) { if (vlastnik1[playerid] == 0){ SendClientMessage(playerid,zluta,"Kúpil si obchod"); vlasnik[playerid] = 1; } else { new jmeno[24]; GetPlayerName(vlastnik1[playerid], jmeno, 24); format(string,sizeof(string), "Vlastník: %s", jmeno); SendClientMessage(playerid,zluta,string); } return 1; } toto ? Link to comment Share on other sites More sharing options...
0 DarkDriver 0 Odesláno: 3. Březen, 2010 Author Share Odesláno: 3. Březen, 2010 Nechci to kupovat chci jen na příkazu zjistit kdo je majitel.Jinak diky QWER pokud na tu chybu nikdo nepřijde překopu to. -- stř 03. bře 2010 9:27:06 -- else if(strcmp(cmdtext, "/buy", true) == 0){ if (vlastnik1[playerid] == 0){ SendClientMessage(playerid,zluta,"Kúpil si obchod"); vlasnik[playerid] = 1; } else { new jmeno[24]; GetPlayerName(vlastnik1[playerid], jmeno, 24); format(string,sizeof(string), "Vlastník: %s", jmeno); SendClientMessage(playerid,zluta,string); } return 1; } pořád to vypisuje hráče s id 0 toto Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 3. Březen, 2010 Share Odesláno: 3. Březen, 2010 tak som ta vôbec nepochopil sry... Link to comment Share on other sites More sharing options...
0 DarkDriver 0 Odesláno: 3. Březen, 2010 Author Share Odesláno: 3. Březen, 2010 OK borci chyba vyřešena dík všem co mi aspoň něco pomohli Link to comment Share on other sites More sharing options...
Dotaz
DarkDriver 0
Zdar potřeboval bych pomoct s tímto:
else if(strcmp(cmdtext, "/vlastnik", true) == 0)
{
if (vlastnik1[playerid] >= 1){
new jmeno[24];
GetPlayerName(vlastnik1[playerid], jmeno, 24);
format(string,sizeof(string), "Vlastník: %s", jmeno);
SendClientMessage(playerid,zluta,string);
} else {
SendClientMessage(playerid,zluta,"Vlastník: město");
}
return 1;
}
Problem:pokud nemovitost NEkoupím ukáže vlastníka město.Pokud ji zakoupím vlastníka automaticky nastaví id 0 [0-5 jsou npc] jako vlastníky
Link to comment
Share on other sites
6 odpovědí na tuto otázku
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