25.02.2010, 16:49
Код:
new NewName[258]; if(sscanf(inputtext,"u",NewName)) return ShowPlayerDialog(playerid,36,DIALOG_STYLE_INPUT,"Business.","Type business name.","Create","Close"); new file[258],NewOwner[MAX_PLAYER_NAME],msg[128]; GetPlayerName(playerid,NewOwner,MAX_PLAYER_NAME); for(new i=0;i<MaxBusiness+1;i++){ if(IsPlayerInRangeOfPoint(playerid,IejimuR,verslasDB[i][X],verslasDB[i][Y],verslasDB[i][Z])){ verslasDB[i][name] = NewName; dini_Set(file,"Name",NewName); verslasDB[i][owner] = NewOwner; dini_Set(file,"Owner",NewOwner); Delete3DTextLabel(Business3D[i]); format(msg,128,"Bussines \"%s\"\nOwner: %s.",verslasDB[i][name],verslasDB[i][owner]); Business3D[i] = Create3DTextLabel(msg,Verslo3DSpalva,verslasDB[i][X],verslasDB[i][Y],verslasDB[i][Z],Distance3D,AllowTransparent);