Jump to content
  • 0

pomoc vlastnik


DarkDriver

Dotaz

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

  • 0

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

  • 0

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

  • 0

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...