- 0
Ajutor CMD
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Konti.
Problema intalnita (descriere): E un big, cred, la o comanda, dau /housename si imi zice ca nu am casa, desi o detin.
Ero(area / rile) / warning-(ul / urile): Bug la o comanda.
Liniile de cod / sursa / script-ul(obligatoriu):
CMD:housename(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
if(PlayerInfo[playerid][pPinLogged] == 0 && strlen(PlayerInfo[playerid][pPin]) != 1) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Contul tau este blocat. Scrie /pin pentru a il debloca si pentru a folosi aceasta comanda.");
if(IsPlayerConnected(playerid))
{
new bouse = PlayerInfo[playerid][pPhousekey],housename[250],string[100],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if (PlayerInfo[playerid][pPhousekey] != 999 && strcmp(GetName(playerid), HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
if(sscanf(params, "s[250]", housename)) return SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/housename <Message>");
new maxc = strlen(housename);
if(maxc > 20) return SCM(playerid,COLOR_YELLOW2, "Eroare: Maximum caracter is 20.");
new housename2[250];
mysql_real_escape_string(housename, housename2);
strmid(HouseInfo[bouse][hDiscription], housename2, 0, 64, 255);
format(string, sizeof(string), "House name set to: %s",HouseInfo[bouse][hDiscription]);
SendClientMessage(playerid, COLOR_WHITE, string);
new str[256];
format(str,sizeof(str),"UPDATE houses SET Discription='%s' WHERE ID='%d'",HouseInfo[bouse][hDiscription],PlayerInfo[playerid][pPhousekey]);
mysql_query(SQL,str);
OnPropTextdrawUpdate(1, bouse);
}
else return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: You don't own a house.");
}
return 1;
}
Imagini / Video (optional): -
Edited by Elody aka BogdyAti incercat sa rezolvati singur?: Nu, dar cred ca in loc de HouseInfo[bouse][hDiscription] ar fi mers HouseInfo[house][hDiscription] sau HouseInfo[hDiscription].
5 answers to this question
Recommended Posts