Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(DIALOG_HOUSENAME)
- {
- if(response)
- {
- new bouse = PlayerInfo[playerid][pPhousekey],housename[250],string[100],playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- if (PlayerInfo[playerid][pPhousekey] != 999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
- {
- new maxc = strlen(housename);
- new housename[64];
- if(maxc > 20) return SCM(playerid,COLOR_DS,"{37B9C8}Maximum caracter is 20.");
- new housename2[250];
- mysql_real_escape_string(inputtext, housename);
- strmid(HouseInfo[bouse][hDiscription], housename, 0, strlen(housename), 64);
- format(string, sizeof(string), "House name set to:{B8DBFF} %s",HouseInfo[bouse][hDescription]);
- SendClientMessage(playerid, COLOR_DS, string);
- new str[256];
- format(str,sizeof(str),"UPDATE houses SET Discription='%s' WHERE ID='%d'",HouseInfo[bouse][hDescription],PlayerInfo[playerid][pPhousekey]);
- mysql_query(SQL,str);
- OnPropTextdrawUpdate(1, bouse);
- }
- else return SendClientMessage(playerid, COLOR_DS, "{37B9C8}Tu nu detii o casa.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment